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 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.

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, Gremlin, Table Storage and Azure Cosmos DB for MongoDB API to access your data stored in your Cosmos DB database.

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.

Customers using Azure Cosmos DB

What can you build with Azure Cosmos DB?

Learn about use cases below:

Globally distributed mission-critical applications using Cosmos DB

Aplicativos críticos distribuídos globalmente usando o Cosmos DBGaranta o acesso a usuários de todo o mundo com recursos de alta disponibilidade e baixa latência internos nos datacenters globais da Microsoft.


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

IoT using Cosmos DB

IoT usando o Cosmos DBDimensione de maneira instantânea e elástica para acomodar cargas de trabalho de IoT diversas e imprevisíveis, sem sacrificar a ingestão ou o desempenho de consulta.


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

Personalisation using Cosmos DB

Personalização usando o Cosmos DBGerar recomendações personalizadas para clientes em tempo real, usando configurações de consistência de baixa latência e de ajuste para obter insights imediatos


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

Retail and e-commerce using Cosmos DB

Varejo e comércio eletrônico usando o Cosmos DBSuporte a consultas detalhadas sobre diversos catálogos de produtos, picos de tráfego e estoque em rápida mudança.


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

Gaming using Cosmos DB

Jogos usando o Cosmos DBDimensione elasticamente seu banco de dados para acomodar crescimentos explosivos imprevisíveis de tráfego e entregar experiências de baixa latência para vários jogadores em uma escala global.


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

Serverless apps using Cosmos DB

Aplicativos sem servidor usando o Cosmos DBUse o Azure Functions e o Azure Cosmos DB para criar aplicativos sem servidor escalonáveis e distribuídos globalmente.


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

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.


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

{ LEAF }

Azure Cosmos DB for MongoDB API

Use Azure Cosmos DB as a fully managed database service for your MongoDB app, with little code changes and native API support for MongoDB data, giving your app the benefits of a cloud-native platform.

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.


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

Azure Databricks

Fast, easy and collaborative Apache Spark-based analytics platform

Explore Azure Cosmos DB and see turnkey global distribution in action