What is our primary use case?
We use Cosmos DB in a multifaceted manner, primarily as an operational data store. Additionally, it serves as an analytics and reporting synchronization platform through Synapse Link, Azure's connective data warehousing solution. By connecting directly to Cosmos using the change feed, we project data into our data warehouse and data lake, facilitating both operational functions and analytical reporting needs.
How has it helped my organization?
Cosmos DB significantly enhanced our search result quality due to its impressive performance and reliability, bolstering the overall quality of our service offerings.
Realizing the full benefits of Cosmos DB took time, roughly one to three months. This was mainly due to the transition from a relational data store and the need to restructure our data to fully leverage Cosmos DB's capabilities, such as change feed and other features. While the immediate benefit was eliminating infrastructure maintenance and reducing DevOps/SRE overhead, achieving the total value we sought required optimizing our data structure for this new environment.
What is most valuable?
We primarily use Cosmos DB because it's a managed platform service, eliminating concerns about hosting and reliability. Its geo-redundancy feature allows us to share data globally across three data centers in US Central, East US, and West US, with US Central as the primary write region and the others for reading. Additionally, we leverage Cosmos DB's auto-scaling features, including burst capacity, database-level, and collection-based auto-scaling, and dynamic scaling per region/partition, to accommodate our fluctuating workloads throughout the day.
What needs improvement?
Cosmos DB has a couple of areas for improvement. Firstly, the lack of multi-collection joins is a significant limitation. Secondly, Azure Synapse Link, their data warehousing and synchronization feature, is unreliable and still feels like a preview feature. Improved reliability in this area would be greatly appreciated. Additionally, while Microsoft provides helpful internal monitoring tools, the managed nature of Cosmos DB can sometimes hinder visibility and make it difficult to troubleshoot issues, leaving us unsure whether the problem lies with our implementation or the service itself. Overall, we are satisfied with most aspects of Cosmos DB, but addressing these issues would significantly enhance its usability.
One of the primary challenges with Cosmos DB as a non-relational data store is the careful data modeling required due to the lack of collection-level joins when using the SQL API. While joins are possible within a single document, joining across documents or collections is not supported with this API. Although the Mongo API and Gremlin API on Cosmos DB allows for cross-collection joins this limitation in the SQL API remains a significant drawback.
For how long have I used the solution?
I have been using Microsoft Azure Cosmos DB for ten years.
What do I think about the stability of the solution?
While Cosmos DB has experienced occasional stability issues in previous years, its performance has been consistently reliable over the past 12 months.
What do I think about the scalability of the solution?
The scalability of Cosmos DB is very good. It is one of the best capable offerings for scaling workloads.
How are customer service and support?
We pay for unified response support, and generally, the support for Cosmos DB is good. However, without top-tier support, it can take a while and might not always be the most helpful.
How would you rate customer service and support?
Which solution did I use previously and why did I switch?
We extensively use Google Bigtable and, to a lesser extent, MongoDB. Additionally, we are increasingly utilizing Redis for various NoSQL use cases.
Cosmos DB and MongoDB differ in several key areas. While Cosmos DB excels in scalability, reliability, especially on Azure, and change feed capabilities, MongoDB offers a superior developer experience with local development options and more complex NoSQL use cases like multi-collection joins and advanced store procedures. However, MongoDB's query workloads are generally more capable, and it offers a wider range of indexing options and document size limits. Ultimately, the choice depends on specific needs and priorities, with Cosmos DB favouring cloud-based applications and MongoDB providing greater flexibility for complex database operations.
How was the initial setup?
The initial setup was straightforward; one person completed it within one week.
What about the implementation team?
We handled the deployment all in-house without any external integrator or consultant.
What's my experience with pricing, setup cost, and licensing?
Cosmos DB is a managed offering, so its cost is understandably higher. However, the value it provides aligns with its price, especially considering the discounts we receive. By purchasing reserved units for three years, we secure a significant discount, making the cost justifiable for our needs. Without this discount, the list price might be prohibitive for certain use cases.
What other advice do I have?
I would rate Microsoft Azure Cosmos DB eight out of ten.
It took us three months to be fully onboarded with Cosmos DB.
The learning curve for Cosmos DB is certainly different from SQL databases. While most developers become proficient with basic functionality within a week or two, achieving true expertise in Cosmos DB requires a considerably longer time investment due to its unique architecture and features.
The maintenance is handled by Microsoft.
Be very careful with your partition keys when using Cosmos DB.
Which deployment model are you using for this solution?
Public Cloud
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Microsoft Azure