What is the Azure Cosmos DB Apache Cassandra API?

Azure Cosmos DB can be used as the data store for apps written for Apache Cassandra, by using the Apache Cassandra API. This means that by using existing Apache licensed drivers compliant with CQLv4, your application written for Cassandra can now communicate with the Azure Cosmos DB Cassandra API. In many cases, you can switch from using Apache Cassandra to using Azure Cosmos DB 's Apache Cassandra API, by simply changing a connection string. Using this functionality, you can easily build and run Cassandra API database applications in the Azure cloud with Azure Cosmos DB's global distribution and comprehensive industry-leading SLAs, while continuing to use familiar skills and tools for Cassandra API.

The Cassandra API enables you to interact with data stored in Azure Cosmos DB using the Cassandra Query Language based tools (like CQLSH) and Cassandra client drivers you’re already familiar with. Learn more about it in this Microsoft Mechanics video with Principal Engineering Manager Kirill Gavrylyuk.

What is the benefit of using Apache Cassandra API for Azure Cosmos DB?

No operations management: As a true fully managed service, Azure Cosmos DB ensures that Cassandra API administrators do not have to worry about managing and monitoring a myriad settings across OS, JVM, and yaml files and their interplay. Azure Cosmos DB provides monitoring of throughput, latency, storage and availability, and configurable alerts.

Performance management: Azure Cosmos DB provides SLA backed low latency reads and writes for the 99th percentile. Users do not need to worry about lot of operational overhead to provide good read and write SLAs. These typically include scheduling compaction, managing tombstones, bloom filters setting, and replica lags. Azure Cosmos DB takes away the worry of managing these issues and lets you focus on the application deliverables.

Global distribution and availability: Azure Cosmos DB provides the ability to distribute data throughout Azure regions to enable users with a low latency experience while ensuring availability. Azure Cosmos DB provides 99.99% availability within a region and 99.999% read availability across the regions with no operations overhead. Azure Cosmos DB is available in 30+ Azure Regions. Learn more in Distribute data globally.

Choice of consistency: Azure Cosmos DB provides the choice of five well-defined consistency levels to achieve optimal trade-off between consistency and performance. These consistency levels are strong, bounded-staleness, session, consistent prefix, and eventual. These granular, well-defined consistency levels allow developer to make sound trade-offs between consistency, availability, and latency. Learn more in Using consistency levels to maximize availability and performance.

Enterprise grade: Secure and compliant by default – Azure cosmos DB provides compliance certifications to ensure users can use the platform without worrying about compliance issues. Azure Cosmos DB also provides encryption at rest and in motion, IP firewall, and audit logs for control plane activities.

Sign up now

If you already have an Azure subscription, you can sign up to join the Cassandra API (preview) program in the Azure portal. If you’re new to Azure, sign up for a free trial where you get 12 months of free access to Azure Cosmos DB. Complete the following steps to request access to the Cassandra API (preview) program.

In the Subscription box, select the Azure subscription that you want to use for this account.

Click Sign up to preview today.

In the Sign up to preview today pane, click OK.

Once you submit the request, the status changes to Pending approval in the New account pane.

After you submit your request, wait for email notification that your request has been approved. Due to the high volume of requests, you should receive notification within a week. You do not need to create a support ticket to complete the request. Requests will be reviewed in the order in which they were received.

How to get started

Once you've joined the preview program, follow the Cassandra API quickstarts to create an app by using the Cassandra API: