Unified AI Database - Azure Cosmos DB (original) (raw)

"OpenAI relies on Cosmos DB to dynamically scale their ChatGPT service – one of the fastest-growing consumer apps ever – enabling high reliability and low maintenance." – Satya Nadella, Microsoft chairman and chief executive officer

Today's applications are required to be highly responsive and always online. They must respond in real time to large changes in usage at peak hours, store ever increasing volumes of data, and make this data available to users in milliseconds. To achieve low latency and high availability, instances of these applications need to be deployed in datacenters that are close to their users.

The surge of AI-powered applications created another layer of complexity, because many of these applications integrate a multitude of data stores. For example, some organizations built applications that simultaneously connect to MongoDB, Redis, and Gremlin. These databases differ in implementation workflow and operational performances, posing extra complexity for scaling applications.

Azure Cosmos DB simplifies and expedites your application development by being the single database for your operational data needs, from geo-replicated distributed caching to back up to vector indexing and search. It provides the data infrastructure for modern applications like AI agent, digital commerce, Internet of Things, and booking management. It can accommodate all your operational data models, including document, vector, key-value, graph, and table.

If you're comparing Azure database services to find the right fit for your workload, see Choose an Azure data service in the Azure Architecture Center.

An AI database providing industry-leading capabilities...

...for free

Tip

Agent Kit helps coding agents work with Azure Cosmos DB quickly and efficiently using recommended best practices. To get started, run:

npx skills add AzureCosmosDB/cosmosdb-agent-kit

To learn more, see Azure Cosmos DB Agent Kit.

Azure Cosmos DB is a fully managed NoSQL and vector database. It offers single-digit millisecond response times, automatic and instant scalability, along with guaranteed speed at any scale. Business continuity is assured with SLA-backed availability and enterprise-grade security.

App development is faster and more productive thanks to:

As a fully managed service, Azure Cosmos DB takes database administration off your hands with automatic management, updates, and patching. It also handles capacity management with cost-effective serverless and automatic scaling options that respond to application needs to match capacity with demand.

The following free options are available:

When you decide that Azure Cosmos DB is right for you, you can receive up to 63% discount on Azure Cosmos DB prices through Reserved Capacity.

...for more than just AI apps

Besides AI, Azure Cosmos DB should also be your goto database for various use cases. These use cases include retail and marketing, IoT and telematics, gaming, social, and personalization, among others. Azure Cosmos DB is well positioned for solutions that handle massive amounts of data, reads, and writes at a global scale with near-real response times. Azure Cosmos DB's guaranteed high availability, high throughput, low latency, and tunable consistency are huge advantages when building these types of applications.

For what kinds of apps are Azure Cosmos DB a good fit?
For what kinds of apps are Azure Cosmos DB a poor fit?

...with unmatched reliability and flexibility

Guaranteed speed at any scale

Gain unparalleled SLA-backed speed and throughput, fast global access, and instant elasticity.

Simplified application development

Build fast with open-source APIs, multiple SDKs, schemaless data, and no-ETL analytics over operational data.

Mission-critical ready

Guarantee business continuity, 99.999% availability, and enterprise-level security for every application.

Fully managed and cost-effective

End-to-end database management, with serverless and automatic scaling matching your application and total cost of ownership (TCO) needs.

Azure Synapse Link for Azure Cosmos DB is a cloud-native hybrid transactional and analytical processing (HTAP) capability that enables analytics at near real-time over operational data in Azure Cosmos DB. Azure Synapse Link creates a tight seamless integration between Azure Cosmos DB and Azure Synapse Analytics.

Azure Cosmos DB vs. Azure DocumentDB

Azure Cosmos DB and Azure DocumentDB are both powerful NoSQL database services designed to help you build successful applications with flexible JSON data models. Azure Cosmos DB is optimized for scale-out scenarios that require global distribution, massive scale, and instantaneous scaling. It offers a 99.999% availability service level agreement (SLA) with automatic failover across multiple regions. This reliability makes it well-suited for high-traffic web apps, IoT data collection, real-time gaming, and global online stores that need reliable performance worldwide.

Azure DocumentDB (vCore) is optimized for scale-up scenarios that prioritize rich query capabilities and familiar development experiences. Azure DocumentDB is powered by the open-source DocumentDB engine built on the PostgreSQL engine with full MongoDB wire protocol compatibility. Azure DocumentDB excels at complex aggregation pipelines, analytical queries, and advanced document database features. It's ideal for content management systems, analytics platforms, MongoDB migrations, and applications requiring sophisticated query operations with predictable vCore-based pricing.

Azure DocumentDB is also a good fit for multicloud portability scenarios. It's ideal when you need to sustain existing MongoDB-compatible tooling, drivers, or operational patterns across multiple cloud environments. This compatibility is especially valuable when refactoring to the Cosmos DB native API isn't immediately feasible.

Characteristic Azure Cosmos DB (RU/serverless) Azure DocumentDB (vCore)
Availability SLA 99.999% (multi-region) 99.995%
Scaling model Horizontal scale-out (per region RU/s + serverless) Vertical scale-up (provisioned vCores)
Global distribution Turnkey multi-region writes & automatic failover Regional deployments + optional geo-replicas
Query focus Optimized for point reads & distributed queries Advanced aggregation pipelines & complex joins
Cost model Variable RU-based or serverless consumption Predictable compute + storage

For more detailed information, see Azure DocumentDB vs. Azure Cosmos DB decision guide.

Tip

In most new application scenarios where you're flexible on drivers and need global scale, prefer the native API for NoSQL on Azure Cosmos DB for fastest feature velocity and turnkey global distribution. Choose Azure DocumentDB only when you require: (1) deep MongoDB aggregation & multi-document transaction fidelity, or (2) multicloud portability using MongoDB-compatible drivers and tooling without refactoring.