Key Features of Azure Cosmos DB
Azure Cosmos DB is a globally distributed, multi-model database service that enables you to harness the benefits of global distribution, comprehensive service level agreements (SLAs), and elastic scalability. Explore its powerful features that make it suitable for a wide range of applications.
Global Distribution
Cosmos DB allows you to distribute your data across any number of Azure regions worldwide. You can provision your database accounts and replicate data to any Azure region, ensuring low-latency data access for your users, anywhere in the world. With active-active replication, you can achieve multi-region writes for high availability and performance.
- Turnkey global distribution
- Multi-region writes with automatic failover
- Consistent latency across regions
Multiple APIs & Data Models
Cosmos DB offers a variety of data models and APIs to support diverse application needs. Whether you're building with a document, key-value, graph, or columnar model, Cosmos DB has you covered:
- Core (SQL) API: Rich, hierarchical JSON data with SQL query capabilities.
- MongoDB API: Seamless migration for MongoDB applications.
- Cassandra API: For Apache Cassandra workloads.
- Gremlin API: For graph data and traversals.
- Table API: For Azure Table storage workloads.
This flexibility means you can use the familiar APIs and query languages your team already knows, without sacrificing the benefits of Cosmos DB.
Guaranteed Performance with SLAs
Cosmos DB provides comprehensive, industry-leading, financially backed service level agreements (SLAs) for availability, throughput, latency, and consistency. These SLAs ensure that your applications can rely on Cosmos DB for mission-critical workloads.
- Lowest latency
- High availability
- Elastic scalability
- Guaranteed throughput
Elastic Scalability
Scale your throughput and storage elastically and independently, on demand. Cosmos DB's partitioning model allows for virtually unlimited horizontal scaling of both throughput (request units, RUs) and storage. You can scale up or down seamlessly to meet the demands of your application.
// Example of scaling throughput for a container (Core SQL API)
// In Azure Portal or using SDKs
UPDATE dbtables['mycontainer']
SET partitionKey.paths = ['/categoryId'],
throughput = 4000;
Schema-Agnostic Indexing
Cosmos DB automatically and intelligently indexes all your data without requiring schema or index management. The automatic indexing ensures that queries are fast and efficient, regardless of the data structure.
Multi-Master Support
Enable multi-master writes for your globally distributed applications. This feature allows your application to write to any Azure region that has been configured for replication, providing unparalleled availability and resilience.
Advanced Security
Cosmos DB offers robust security features, including encryption at rest and in transit, fine-grained access control, and integration with Azure Active Directory for comprehensive identity management.
Discover how these features can empower your modern applications and drive innovation.
Get Started with Cosmos DB