Skip navigation

Azure Cosmos DB

Globally distributed, multi-model database service

A database for building blazing fast, planet scale apps with native support for NoSQL

Azure Cosmos DB was built from the ground up with global distribution and horizontal scale at its core. It offers turnkey global distribution across any number of Azure regions by transparently scaling and replicating 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 and SQL, offers multiple well-defined consistency models, guarantees single-digit-millisecond read and write latencies at the 99th percentile, and guarantees 99.999 high availability with multi-homing anywhere in the world – all backed by industry-leading, comprehensive service level agreements (SLAs).

Turnkey global distribution

Easily build planet-scale, always "on", highly responsive, multi-homed apps without the hassle of complex, multiple data centre configurations. Designed as a globally distributed database system, Azure Cosmos DB allows you to write to and read from the local replicas of your Cosmos DB database, which is replicated across any number of Azure regions.

Limitless and elastic scalability of writes & reads

Azure Cosmos DB elastically scales reads and writes globally, and you only pay for the throughput and storage you need. Designed with transparent horizontally-partitioning and multi-master replication, Azure Cosmos DB offers unprecedented elastic scalability for your writes and reads all around the globe!

Guaranteed low latency in the 99th percentile

You can build highly responsive, planet scale apps. With its novel multi-master replication protocol and latch-free and write-optimised database engine, Azure Cosmos DB guarantees less than 10-ms latencies for both reads and (indexed) writes at the 99th percentile, all around the world.

Well-defined consistency choices

You no longer have to make the extreme trade-offs between consistency, availability, latency and programmability. Azure Cosmos DB's multi-master replication protocol is carefully designed to offer five well-defined consistency choices – strong, bounded staleness, consistent-prefix, session and eventual – for an intuitive programming model with low latency and high availability for your globally distributed app.

Enterprise-grade performance and security

Rest assured that your apps are running on a “battle-tested” database service built on world-class infrastructure. Azure Cosmos DB gives you enterprise-grade security and compliance, and is the first and only service to offer industry-leading comprehensive SLAs for 99.999% high availability, latency in the 99th percentile, guaranteed throughput and consistency.

Multi-model with native support for NoSQL APIs

Azure Cosmos DB allows you to model real-world data using key-value, graph, column-family and document data models. You don't have to deal with the hassle of managing schemas and secondary indexes – Azure Cosmos DB automatically indexes all data at the time of ingestion. You can also use your favourite API including SQL, Apache® Cassandra, MongoDB, Gremlin and Azure Table Storage to access your data stored in your Cosmos DB database.

Customers using Azure Cosmos DB

What can you build with Azure Cosmos DB?

Learn about use cases below:

Globally distributed mission-critical applications

Guarantee access to users around the world with the high-availability and low-latency capabilities built into Microsoft’s global data centres.

Learn more

Diagram of Global reach solution

IoT

Scale instantly and elastically to accommodate diverse and unpredictable IoT workloads without sacrificing ingestion or query performance.

Personalisation

Generate personalised recommendations for customers in real time, using low-latency and tunable consistency settings for immediate insights.

Learn more

Retail and e-commerce

Support in-depth queries over diverse product catalogues, traffic spikes and rapidly changing inventory.

Learn more

Gaming

Elastically scale your database to accommodate unpredictable bursts of traffic and deliver low-latency, multi-player experiences on a global scale.

Learn more

Serverless apps

Use Azure Functions and Azure Cosmos DB to build globally distributed, scalable serverless applications.

Learn more

Get started with Azure Cosmos DB

Create an account

Connect to your application

Work with data

Step 1 of 1

Get started by creating an Azure Cosmos DB account and collection to store your data by selecting an API that best suits your needs.

Step 1 of 1

Connect your application to Azure Cosmos DB by implementing one of the connectors for your programming language of choice.

Step 1 of 1

Explore your data in your application by using read and write queries. Manage your data using Azure Cosmos DB’s unique features.

Start developing with Azure Cosmos DB

Azure Cosmos DB is designed for developers, with support for a wide range of APIs. Watch Introducing Azure Cosmos DB, get started with expert tips or learn more about what you can do with APIs and connectors.

SQL API

Azure Cosmos DB has native support for SQL and JavaScript APIs.

{ LEAF }

MongoDB API

Use Azure Cosmos DB as a fully managed database service for your MongoDB app, without any code changes, with native API support for MongoDB.

Table API

Use Azure Cosmos DB as a globally distributed database for your Azure Table storage-based application, without any code changes, using the Table API. You get secondary indexes, global distribution, policy-based failover capabilities and much more.

Cassandra API

Deliver Cassandra as a service over the power of Azure Cosmos DB. Use Cassandra SDKs and tools to build applications at near-infinite global scale with SLA-backed capabilities of the Azure Cosmos DB platform.

Spark

For real-time machine learning over globally distributed datasets managed by Azure Cosmos DB, use the Spark connector to issue Apache Spark queries. The Spark connector takes advantage of native indexes managed by Azure Cosmos DB, resulting in significant performance gains.

Gremlin API

Take advantage of native Graph APIs on Azure Cosmos DB without any code changes, and issue globally distributed graph queries using Gremlin with Graph API.

Azure Cosmos DB Partners

Related products and services

Azure SQL Database

Managed, relational SQL Database as a service

App Service

Quickly create powerful cloud apps for web and mobile

HDInsight

Provision cloud Hadoop, Spark, R Server, HBase and Storm clusters

Explore Azure Cosmos DB and see turnkey global distribution in action