Azure Cosmos DB Intro

Cosmos DB falls into the “NoSQL” technology group, call it a buzz word if you like but it is very different to classic Relational Databases such as SQL Server. I never really understood why it was labeled NoSQL, if you build a document based data model via the SQL API you actually use SQL like language to query the JSON (from the collection). Moving on, it is an evolution from what used to exist called Document DB. (Cosmos DB sounds way more aggressive and punchy, right?) Recently I have been using it to store JSON documents (Document based data model) in Azure, as a fully managed service, i.e. PaaS and maybe you will use it one day.

What does it offer?

Many things that stand out – Unlimited scale with scale-out features which is based on horizontal partitioning which is server side with no need to implement your own logic, all is needed is a partition key. We all know how tough it can be to implement scale out architectures. It is also based on turnkey global distribution meaning it is very easy to add / remove regions for your Geo-replication needs to support global distribution.

Multi-model

There are 4 data models with varying APIs to call upon.

  • Documents – SQL (JSON) or Mongo (BSON) API.
  • Key Value – I  think of this as a way to move away from Azure Table Storage.
  • Graph – Gremlin API.
  • Columnar –  Cassandra API.

models1

So, next post we will look at creating a Cosmos DB and look into the local emulator.

 

Advertisement

1 thought on “Azure Cosmos DB Intro

  1. Pingback: Dew Drop – June 10, 2019 (#2976) | Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s