Understand Azure Cosmos DB APIs easily - Cloud Nerchuko

Azure Cosmos DB APIs

In Azure Cosmos DB, there are a total of five different types of APIs available. These are:

  1. NoSQL API  
  2. MongoDB API 
  3. Cassandra API 
  4. PostgreSQL API 
  5. Gremlin API 
  6. Table API

Among the APIs listed above, the NoSQL API is the native API for Azure Cosmos DB.

Let’s first explore the core features of Cosmos DB to understand what makes it unique.

Core features of Azure Cosmos DB:
  1. Global Distribution: Easily distribute your data across multiple Azure regions, ensuring your applications are highly available and close to your users around the world.
  2. Elastic Scaling of Storage and Throughput: Easily scale your storage and throughput units up or down to meet the demands of your applications.
  3. High Performance at Scale: Delivers consistently high performance even with large volumes of data, offering excellent scalability and ease of deployment on the cloud.
  4. Low Latency: Enables real-time experiences by processing data instantly with minimal delay.
  5. Support for Transactional and Analytical Workloads: Capable of handling both transactional and analytical data processing.
  6. Fully Managed Platform: Allows you to focus on your business logic while Azure takes care of the infrastructure. Cosmos DB is offered as a fully managed Platform as a Service (PaaS).
All of these core features—low latency, global distribution, and elastic scalability—are consistently available across all Azure Cosmos DB APIs.

Now let’s learn about each API one by one.

NoSQL API:

In Azure Cosmos DB, the NoSQL API is used to easily store, manage, and query data using document-based data models such as JSON. With this API, you can efficiently handle data for real-time and high-throughput applications while benefiting from features like low latency, global distribution, and elastic scalability.

MongoDB API:

The MongoDB API stores data in documents, and the data is stored in BSON format. MongoDB is a document-store type of NoSQL database.

Cassandra API: 

The Cassandra API is a column-oriented store. Using CQL (Cassandra Query Language), we can interact with schemas and databases.

PostgreSQL API:

This API is built on top of the open-source native PostgreSQL API. Data can be set up on a single node or across multiple nodes.

Gremlin API:

Azure Cosmos DB with the Gremlin API allows you to perform graph queries and stores data in the form of edges and vertices.

Table API:

The Table API stores data in a key-value format. By using Azure Cosmos DB, you can overcome the limitations of Azure Table Storage while gaining access to enhanced features.








Comments