Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium
A manufacturing company uses legacy applications that rely heavily on Apache Cassandra for their operational data store. They want to migrate these applications to Azure without significant code changes. Which Azure Cosmos DB API would provide the most straightforward migration path?
- ASQL API
- BCassandra API
- CGremlin API
- DTable API
Show answer & explanationAnswer & explanation
Correct answer: B. Cassandra API
The Cassandra API for Azure Cosmos DB provides wire protocol compatibility with Apache Cassandra. This allows existing Cassandra applications to connect to Cosmos DB with minimal or no code changes, making it the most straightforward migration path.
Why the other options are wrong
- A. SQL API requires re-architecting data models and queries from Cassandra to a document model.
- C. Gremlin API is for graph databases and incompatible with Cassandra's wide-column model.
- D. Table API is a key-value store and incompatible with Cassandra's data model.
Azure Cosmos DB Cassandra API
An API for Azure Cosmos DB that provides wire protocol compatibility with Apache Cassandra, enabling easy migration of existing Cassandra applications.
- Supports Cassandra Query Language (CQL).
- Leverages Cosmos DB's global distribution and scalability.
- Ideal for migrating existing Cassandra workloads to Azure with minimal code changes.
Memory trick: Cassandra's bridge to Cosmos DB.