Skip to main content

Azure CosmosDB

Overview

Azure Cosmos DB is a distributed, multi-model database-as-a-service.It exposes data through several API flavors, allowing developers to choose the most suitable model for their application. It supports various data models, including relational, document, vector, key-value, graph, and table.

MongoDB API

The MongoDB API allows you to model data using document-based structures. It provides general compatibility with existing MongoDB applications and tools. Developers can leverage MongoDB queries and indexes within Cosmos DB.

Refer to the MongoDB API tutorial which uses core MongoDB API querying concepts for sample MongoDB API interactions.

There is also a document describing Azure CosmosDB semantic searching.

Other Interaction Flavors

CosmosDB’s other interaction options include the following.

API Flavor Description
Cassandra The Cassandra API supports the column-family data model.
Gremlin The Gremlin API is designed for graph data modeling.It allows you to create and query graphs using the Gremlin query language. Ideal for applications that require complex relationships and traversals.
SQLThe SQL API stores data in a document format, which is schema-agnostic. You can query the data using a SQL-like language that’s designed for rich querying over documents. It supports JSON data, allowing you to seamlessly work with the hierarchical data structures common in NoSQL databases.
TableThe Table API is designed for storing simple key-value data.It caters to users familiar with Azure Table storage, offering premium features for this use case.

These styles may be provided in the near future. Contact Qarbine for early access invitations.