Apache Cassandra API in Azure Cosmos DB – offering you Cassandra as-a-service powered by Azure Cosmos DB. You can now experience the power of Azure Cosmos DB platform as a managed service with the familiarity of your favorite Cassandra SDKs and tools—without any app code changes.
Bring your Cassandra apps to Azure Cosmos DB in 3 simple steps:
- Create a new Azure Cosmos DB account in the Azure Portal and choose the new Cassandra API while creating an Azure Cosmos DB account.
- Connect your Cassandra application to Azure Cosmos DB copying a simple connection code snippet provided to you upon creation of your new account.
- Use your favorite Cassandra tools and drivers to manage and query your Cassandra data in Azure Cosmos DB
Azure Cosmos DB provides wire protocol level compatibility with the Cassandra API. This ensures you can continue using your existing application and OSS tools with no code changes and gives you the flexibility to run your Cassandra apps fully managed with no vendor lock-in. While Azure Cosmos DB exposes APIs for the popular open source databases, it does not rely on the implementations of those databases for realizing the semantics of the corresponding APIs.
Reference: https://azure.microsoft.com/en-us/blog/dear-cassandra-developers-welcome-to-azure-cosmosdb/
The official documentation also mentioned :
Azure Cosmos DB Cassandra API can be used as the data store for apps written for Apache Cassandra. This means that by using existing Apache drivers compliant with CQLv4, your existing Cassandra application 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 Cassandra API, by just changing a connection string.
Azure Cosmos DB provides wire protocol level compatibility with existing Cassandra SDKs and tools. This compatibility ensures you can use your existing codebase with Azure Cosmos DB Cassandra API with trivial changes.
It's not absolutely "no code changes". After you migrate your app from Cassandra to Cosmos, you need to test if the app works well or the query statements execute successfully. You need to consider about the code compatibility.
To see: Apache Cassandra features supported by Azure Cosmos DB Cassandra API.
If there is error or exception happens, you certainly need to modify the code.
Hope this can helps you.