Azure Cosmos DB
Build or modernize scalable, high-performance apps
Fast NoSQL database with open APIs for any scale
Azure Cosmos DB is a fully managed, serverless NoSQL database for high-performance applications of any size or scale. Get guaranteed single-digit millisecond performance and 99.999-percent availability, backed by SLAs, automatic and instant scalability, enterprise-grade security, and open-source APIs for NoSQL databases including MongoDB and Cassandra. Enjoy fast writes and reads anywhere in the world with multi-region writes and data replication. Gain insight over real-time data with no-ETL (extract, transform, load) analytics using Azure Synapse Link for Azure Cosmos DB.
Guaranteed speed at any scale with instant and limitless elasticity, seamless burst capacity, fast reads, and multi-region writes anywhere in the world
Fast, flexible app development with SDKs for popular languages plus a native Core (SQL) API, APIs for MongoDB, Cassandra, and Gremlin, and free dev/test options
Ready for mission-critical applications with 99.999-percent availability, continuous backup with point-in-time restore, enterprise-level security that guarantees business continuity, and no-ETL analytics over real-time data
Fully managed and cost-effective serverless database that responds to application needs by instantly and automatically scaling up and down, and offers consumption-based pricing options
Automatic and limitless scale
Meet your application needs and deliver high performance—even with unpredictable traffic—with a database that scales elastically, automatically, and instantly. Workloads of any size or scale are guaranteed always-on availability and single-digit millisecond reads and writes, so you’re able to run your most important applications worry-free anywhere in the world.
Serverless database operations
Run workloads with spiky or occasional traffic and pay for only the resources used per database operation, with no minimum charges or capacity planning needed. Serverless is a consumption-based mode that makes it easy and cost-effective to run dev/test workloads and production applications.
Hybrid platform for Apache Cassandra data
Gain scale and superior performance, while maintaining flexibility and control, with a fully managed NoSQL database service trusted by companies like Symantec to run Cassandra workloads. Seamlessly integrate with fully compatible Azure Managed Instance for Apache Cassandra for transparent migration, replication, and synchronization of your Cassandra data in a hybrid deployment or lift and shift to Azure.
No-ETL analytics over real-time operational data
Reduce time to insight by running near-real time analytics and AI on the operational data within your Azure Cosmos DB NoSQL database. Azure Synapse Link for Azure Cosmos DB seamlessly integrates with Azure Synapse Analytics without data movement or diminishing the performance of your operational data store.
Comprehensive security and compliance, built in
Microsoft invests more than USD 1 billion annually on cybersecurity research and development.
We employ more than 3,500 security experts dedicated to data security and privacy.
Azure has more certifications than any other cloud provider. View the comprehensive list.
Pricing that gives you flexibility and control
Find the model that best fits your workload and free options for testing and development. Enjoy virtually unlimited throughput and storage, automatic elastic scalability across regions, and consumption-based serverless options.
Everything you need to get started
Popular use cases for Azure Cosmos DB
Fast and scalable IoT device telemetry
Scale instantly and elastically to handle IoT and real-time telemetry use cases, without sacrificing ingestion or query performance. Ingest, process, and analyze streaming data at scale from any number of devices, anywhere in the world.
Real-time retail services
Deliver scalable, high-performance retail use cases, including real-time product catalogue, personalized recommendations, order processing, and check-out services. Used by leading retailers to support business-critical, digital customer experiences, Azure Cosmos DB ensures speed and performance for customers around the world.
Critical applications with distributed users
Run your most critical workloads in any Azure region with SLA-backed speed, availability, throughput, and consistency. Azure Cosmos DB supports distributed applications with users anywhere in the world, and delivers high-availability and low-latency at scale.
Industry leaders are innovating with Azure Cosmos DB
Globally distributed data powers apps and microservices to improve pet care
Adam Lind, Vice President of Software Development
"Azure services enabled us to provide a secure, fully monitored, enterprise-ready foundation to our implementation."
Connected car platform relies on guaranteed high availability and low latency
Rodrigo Nunes, Principal Software Engineer
"The Azure ecosystem gave us useful capabilities that the developers worked into their system."
Chipotle powers digital ordering and personalized web experience with Azure Cosmos DB
Mike Smith, Lead Software Developer
"Switching to Azure Cosmos DB is a big win in terms of scalability, availability, and, down the road, geographic distribution."
ASOS delivers global personalized shopping recommendations with Azure Cosmos DB
Bob Strudwick, Chief Technology Officer
"We chose Azure Cosmos DB because of its global distribution and ability to handle heavy seasonal bursts like Black Friday…. We can distribute our data models to be near the microservices they're serving—wherever that is in the world."
Symantec saves 40 percent on database costs by migrating to Azure Cosmos DB
Mike Shavell, Technical Director/Architect, Symantec
"Our customers trust us to protect them throughout their ecosystem. So we needed a partner that we could trust to deliver a highly reliable service with ultra-low worldwide latency, at a reasonable cost."
Designed for developers, with support for a wide range of APIs
Core (SQL) API
Use Cassandra SDKs, CQL, tools, and drivers with the Azure Cosmos DB Cassandra API to enable serverless and scalable applications with SLA-backed 99.999 percent availability. Seamlessly integrate with Azure Managed Instance for Apache Cassandra for hybrid data migration and synchronization.
API for MongoDB
With the Azure Cosmos DB API for MongoDB, you can run a fully managed and serverless database for your application and gain 99.999 percent availability worldwide, elastic scalability, and automatic sharding. The API enables easy deployment with few code changes and continued use of MongoDB drivers, SDKs, and tools.
Documentation, training, and migration resources
Community and Azure support
Join the Azure Cosmos DB community. Follow the Azure Cosmos DB team on Twitter, YouTube, and the Azure Cosmos DB blog. Ask questions and get support from Microsoft engineers and Azure community experts on Stack Overflow. Find samples and repositories on GitHub.
Tutorials and labs
Azure Cosmos DB updates, blogs, and announcements
Frequently asked questions
Azure Cosmos DB is a globally distributed, multi-model database service for any scale. The service was built from the ground up with global distribution and horizontal scale at its core.
With turnkey global distribution across any number of Azure regions, Azure Cosmos DB transparently scales and replicates your data wherever your users are. Elastically scale your writes and reads all around the globe and pay only for what you need. Azure Cosmos DB provides native support for NoSQL and OSS APIs, including MongoDB, Cassandra, Gremlin, etcd, Spark, and SQL. It also offers multiple well-defined consistency models, guaranteed single-digit-millisecond read and write latencies at the 99th percentile, and guaranteed 99.999-percent high availability with multi-homing anywhere in the world—all backed by industry-leading, comprehensive SLAs.
Azure Cosmos DB is a fully managed service that enables you to offload the administrative burdens of operating and scaling distributed databases to Azure, so you don’t have to worry about managing VMs, hardware provisioning, setup and configuration, capacity, replication, software patching, or cluster scaling.
With Azure Cosmos DB, you can configure your databases to be globally distributed and available in any of the Azure regions. To minimize latency, place the data close to where your users are.
Azure Cosmos DB transparently replicates the data to all the regions associated with your Azure Cosmos DB account. It provides a single system image of your globally distributed Azure Cosmos DB database and containers that your application can read and write to locally.
With turnkey global distribution, you can add or remove the regions associated with your account at any time. Your application doesn't need to be paused or redeployed to add or remove a region. High availability is maintained through multi-homing capabilities provided natively by the service. Learn more.
Azure Cosmos DB approaches data consistency as a spectrum of choices, with more options than the two extremes of strong and eventual consistency.
Choose from five well-defined models on the consistency spectrum:
- Bounded staleness
- Consistent prefix
Each model is backed by comprehensive SLAs. Learn more.
As a globally distributed database, Azure Cosmos DB provides comprehensive SLAs that encompass throughput, latency at the 99th percentile, consistency, and high availability. Get more information.
Azure Cosmos DB transparently replicates your data across all the Azure regions associated with your Azure Cosmos DB account. The service applies multiple layers of redundancy to your data. Get more details.
The Azure Cosmos DB API for MongoDB provides you with the ability to interact with Azure Cosmos DB as if it were a MongoDB database, without having to manage the database infrastructure itself. This means that nearly all your favorite MongoDB tooling, SDKs, and applications will continue to work. For detailed compatibility information, see the documentation.
With server version 4.0 support in Azure Cosmos DB API for MongoDB, it's easier to model complex transactional business logic without the complex error handling logic. V4.0 support introduces new features such as multi-document transactions, retryable writes, and more.
The Azure Cosmos DB Cassandra API enables you to interact with data stored in Azure Cosmos DB using the Cassandra Query Language (CQL), Cassandra-based tools (like cqlsh) and existing Apache drivers compliant with CQLv4. This means your existing Cassandra application can now communicate with the Azure Cosmos DB Cassandra API. Coming soon, the API will also connect with the Azure Managed Instance for Apache Cassandra (upon GA).