DEV Community

Cover image for Microsoft Azure Cosmos DB | Containers | Global distribution | Performance and many more
FSH Infotech
FSH Infotech

Posted on

Microsoft Azure Cosmos DB | Containers | Global distribution | Performance and many more

Introduction

Azure Cosmos DB is a database service provided by Microsoft's Azure a popular cloud computing platform and is globally distributed. It is a multi-model database service used by corporates and big tech companies to develop modern web and mobile-based applications. It is well-known and supports the document-based structure for storing data.

Functionally the Azure Cosmos DB stores the items in the form of containers.

Containers

Containers are nothing but those which are grouped in databases, which are analogous to the namespaces above containers.

Containers are schema-agnostic, which means that no schema is enforced while adding items.

Performance and Indexes

This database provides great performance in real time because every field in each item is indexed by default without writing or making changes to the schema.

There are two types of indexes offered by Cosmos DB. They are:
1) Range
2) Spatial

Range:
Supports range with ORDER BY queries.

Spatial:
Supports spatial queries from points, polygons, line strings, and Geo JSON fragments.

Usecases

Cosmos databases are used mainly for the below use cases based on their features to provide their service.

IOT

Retail

Marketing

Gaming

Web applications

Mobile based apps

Top comments (0)