Azure Cosmos DB

Azure Cosmos DB is Microsoft's globally distributed, multi-model database.
With Azure cosmos DB, we can quickly create and query document, key/value, and graph databases

Azure cosmos DB supports multiple models:

  1. SQL : A schema-less JSON database engine with SQL querying capabilities.
  2. MongoDB : A MongoDB database service built on top of Cosmos DB.  Compatible with existing MongoDB libraries, drivers, tools and applications.
  3. Table : A key-value database service built to provide premium capabilities for Azure Table storage applications.
  4. Graph (Gremlin) : A graph database service built following the Apache TinkerPop specification.
  5. Cassandra : A key/value store built on the Apache Cassandra implementation. 
In this post, let us see steps to get started with Azure Cosmos DB SQL API.

From Azure portal, Click on Azure Cosmos DB. Provide unique name for the account and select API as SQL

 Provide unique database name & collection name and click OK, Azure cosmos DB will be deployed in few minutes.

 Inside DB, we can have one or more Collections and within a Collection we can create multiple documents.

Click on the database -> Data Explorer -> under Collections (JsonDocs) -> Documents.
We can paste valid Json documents and save with unique Id for that document as shown below:

There is also Document, Query & Script Explorer:


See Also:

No comments: