Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Cosmos DB (DocumentDB API) vs. Cosmos DB (Table API)

Microsoft Cosmos DB includes DocumentDB API, Table API and others. I have about ~ 10 TB of data and would like to have a fast key-value lookup (very little updating and writing, mostly are reading). Add a link for Microsoft Cosmos DB: https://docs.microsoft.com/en-us/azure/cosmos-db/

  1. So how should I choose between DocumentDB API and Table API?
  2. Or when should I choose DocumentDB API? When should I choose Table API?
  3. Is it a good practice to use DcoumentDB API to store 10 TB of data?
like image 793
nkhuyu Avatar asked Oct 28 '17 04:10

nkhuyu


People also ask

Which API is best for Cosmos DB?

Core(SQL) API is native to Azure Cosmos DB. API for MongoDB, Cassandra, Gremlin, and Table implement the wire protocol of open-source database engines. These APIs are best suited if the following conditions are true: If you have existing MongoDB, Cassandra, or Gremlin applications.

What is the benefit of Azure Cosmos DB Table API as compared to Azure Table storage?

What is a benefit of the Azure Cosmos DB Table API as compared to Azure Table storage? Multi-master support for Azure Cosmos DB is now available in all public regions. Azure CosmosDB table API is a key-value storage hosted in the cloud. It's a part of Azure Cosmos DB, that is Microsoft's multi-model database.

Which API Model S of Azure Cosmos DB is are recommended for new applications?

As a result, we recommend using the same API for all access to the data in a given account. Each API operates independently, except the Gremlin and SQL API, which are interoperable.

What is the benefit of the Azure Cosmos DB Table API?

Azure Cosmos DB provides well-reasoned trade-offs between consistency, availability, and latency. Azure Cosmos DB offers five consistency levels to Table API developers, so you can choose the right consistency model at the table level and make individual requests while querying the data.


1 Answers

The Azure Cosmos DB Table API was introduced to make Cosmos DB and its advanced indexing, geo-distribution, etc. features available to the Azure Table storage community. The idea is that someone using Azure Table storage who needs more advanced features only offered by Cosmos DB can literally just change their connection string and their existing code will work with Cosmos DB.

But if you are a greenfield customer then I would recommend using SQL API (formerly called Document DB API) which is a super set of Table API. We are constantly investing in providing more advanced features and capabilities to SQL API where as for Table API we are just looking to maintain compatibility with Azure Table storage's API which hasn't changed in many years.

How much data you have doesn't have any affect on what API you choose. They both have the same multi-model infrastructure and can handle the same sizes of data, query loads, distribution, etc.

like image 154
Yaron Y. Goland Avatar answered Oct 04 '22 20:10

Yaron Y. Goland