What is our primary use case?
I have been working with Microsoft Azure Cosmos DB for approximately two years across seven projects. I started by creating basic containers at the free tier level that Azure provides, and when requirements grew, I moved them to the paid version. Azure typically provides two containers for free, after which you need to upgrade to the paid version. Of the seven projects, five were small projects and two were mid-sized projects. We created approximately 20-30 containers in total.
What is most valuable?
It works similarly to MongoDB when using NoSQL. When deploying on Azure, the communication is rather easy without many steps and complications, though this is more a benefit of Azure rather than Microsoft Azure Cosmos DB specifically. The queries take a similar amount of time compared to other databases, but the database management system provides a better-looking UI for viewing data compared to other solutions.
The queries in Microsoft Azure Cosmos DB are faster when trying to fetch specific fields from JSON or run particular queries on a container.
What needs improvement?
The main downside I have faced was with hierarchical partitioning in Microsoft Azure Cosmos DB. When using the second partition within hierarchical partitioning, I encountered issues while fetching queries. Though it retrieves values, the performance is not optimal when using partitioning. For example, when dealing with users and different categories of users in hierarchical partitioning, the query results were not providing all the desired results. The documentation regarding partitioning keys was limited, and despite contacting support, the problem remained unresolved. Additional documentation on this feature would be beneficial.
For how long have I used the solution?
I have been using Microsoft Azure Cosmos DB for approximately two years.
What do I think about the stability of the solution?
Lag only occurs when different resources are set up at different locations. When all resources are at the same point, there is no lag. In production, we have experienced minimal issues. The project has been live for two years without any database problems. We decreased the timeout for connections and queries to two seconds, and it works efficiently. Our project remains at mid-scale without requiring a load balancer at the Microsoft Azure Cosmos DB level.
What do I think about the scalability of the solution?
Given the RU size, it can scale up significantly. If the user base increases, increasing RUs to handle more database calls is not problematic. Azure has done an excellent job making everything more scalable, including Microsoft Azure Cosmos DB. The plans allow for easy upgrades based on user growth, supporting parallel queries and increased call volumes. You can move to a better plan if you are going to have more users.
How are customer service and support?
The response time you experience mostly depends on the specific service you are using. For instance, For Azure AD-related issues, their support was quite fast and effective. However, with Azure AI speech service, I faced some challenges. They didn't provide a precise answer to my issue, but they did share some documents for reference. It took about 48 hours for them to respond, and even then, the solution they offered wasn't exactly what I needed.
On the other hand, my experience with Azure Cosmos DB was more positive. I had a specific inquiry regarding partitioning, and their support team was helpful. One representative reached out to me, and we discussed the issue. They were able to guide me in implementing different hierarchical IDs to structure the data better. Our goal was to optimize our queries and reduce API calls. Overall, their response took around seven to eight hours, and I felt they effectively resolved my concerns.
Overall, I would rate their support an eight out of ten. Specifically, if I focus on .NET, I find their support to be excellent. However, for other services, such as Azure reports, there are still issues that prevent me from giving a higher score, so in those cases, I would rate it a seven.
How would you rate customer service and support?
Which solution did I use previously and why did I switch?
I previously used MongoDB. The choice depends on requirements. Microsoft Azure Cosmos DB is optimal for simpler structures with fewer containers and less complex data partitioning, offering faster queries. For more complex database structures, MongoDB might be preferable. However, when using other Azure services and hosting on Azure, Microsoft Azure Cosmos DB works best. The choice ultimately depends on the entire application architecture and hosting environment.
How was the initial setup?
The onboarding process and learning to run queries is straightforward. It requires only a connection string for the database and container name to run queries. Migration from SQL to NoSQL is relatively simple due to easy syntax and connection process. The initial setup took approximately 5 minutes using the emulator on the local machine, and the Azure subscription setup required only about a minute. An API was used to create all containers efficiently.
What's my experience with pricing, setup cost, and licensing?
The pricing is calculated per query with specific calculations, though I cannot provide detailed information about this aspect.
What other advice do I have?
I have worked with Azure AI services including translation, transcription, and speech synthesis. We used Microsoft Azure Cosmos DB for storing links to storage accounts for AI-generated data, utilizing NoSQL queries for data retrieval. Azure AI services can be somewhat challenging to integrate, in my opinion. I find that integrating Microsoft APIs is generally harder compared to others. In this case, we weren't using the Vector DB explicitly; instead, we utilized Microsoft Azure Cosmos DB. We relied on standard containers, and I believe we had about seven or eight containers in total.
We generated our data using AI services and then stored it in these containers. The links to specific storage accounts for each request were saved in Cosmos DB. When we needed to retrieve that information, we used queries to fetch the data.
In a banking project, we used the Vector DB capabilities of Microsoft Azure Cosmos DB, though limitations were due to our API standards rather than database limitations. The team later discovered and implemented the inbuilt vector DB features when the database grew.
Overall, I would rate it a nine out of ten with the only significant issue being the partitioning key functionality. It's a good alternative to other NoSQL databases.