myarotskaya
myarotskaya

Reputation: 211

Cosmos DB APIs performance comparison

I started to research Azure Cosmos DB and figured out that Cassandra API is not in GA yet. Although I'm generally interested in Cassandra API, I'm also trying to figure out how Cosmos DB works so I could possibly find a way how to use existing APIs for my needs.

What I understood from the official documentation:

Does it mean that I can use any other API (e.g. MongoDB, SQL, etc.) and expect similar performance as I would have if I could use Cassandra API?

Upvotes: 2

Views: 2136

Answers (1)

Lee Liu
Lee Liu

Reputation: 2091

Cosmos DB stores data in the same way regardless of used API (MongoDB, Cassandra, etc.)

Cosmos DB stores data in the different ways when use different APIs.

Cosmos DB automatically indexes all the properties

By default, all Azure Cosmos DB data is indexed. More information for your reference: How does Azure Cosmos DB index data

Does it mean that I can use any other API (e.g. MongoDB, SQL, etc.) and expect similar performance as I would have if I could use Cassandra API?

Every API is suitable for the specify scenarios and has better performance in its suitable scene than others.

For example:

If we used to use MongoDB in the past, we can use Mongo API.

If we need to handle our data which is like model or to model both entities and relationships naturally, we can use graph api.

If we need to store data for apps which are written for Apache Cassandra, we can use Apache Cassandra API.

Upvotes: 1

Related Questions