Azure Cosmos DB is Microsoft’s globally distributed and multi-model database service. It is also called Multi-model + multi-API. It also offers turnkey global distribution across any number of Azure regions by transparently scaling and also replicating your data wherever your users are.
Azure Cosmos DB allows you to use key-value, graph, and column-family and document data in one service. It is allows to access you’re Data:-including SQL, JavaScript, Gremlin, MongoDB, and Table Storage. Azure Cosmos DB allows you to independently, and elastically scale storage and throughput at any time. It is build highly responsive, mission-critical applications and developers to write correct globally distributed applications and also support multiple data models and popular APIs for accessing data. It is supports transparent multi-homing and guarantees 99.999% high availability. Azure is a Microsoft cloud database service which based on SQL database technology. It offers five defined consistency levels: strong, bounded staleness, consistent-prefix, session and eventual—for an intuitive programming model with low latency and high availability for your planet-scale app. Azure Cosmos DB also provides a persistent, high concurrency, writeable graph database. Foundation of Azure Cosmos DB is Dr. Leslie Lamport and developed by Microsoft Corporation.
Key Features
Unique keys provide developers with the ability to add a layer of data integrity to their database. It prevents the creation of any new or updated items with values that duplicate values specified by the unique key constraint. These are supported by the latest version of the .NET and .NET Core SQL SDKs and the MongoDB API and table API and Graph API do not support unique keys at this time. Each unique key policy can have a maximum of 10 unique key constraints which combinations for all unique index properties should not exceed 60 characters.
Azure cosmos APIS
- SQL API helps manage JSON data through well-defined database resources which offers a simple HTTP programming model for all resources.
- Graph- Azure Cosmos DB Graph API accounts and graphs using the Azure portal and then use the Gremlin Console from Apache TinkerPop to work with Graph API data.
- MongoDB- MongoDB API provides you comprehensive support for MongoDB query language which constructs.
Uses of Azure Cosmos DB
Retail and Marketing – It is also used in the retail industry for storing catalog data and also for event sourcing in order for processing pipelines. It is a fully manage service that services as a system of registration and system of discovery for enterprise for enter price data sources for example of catalog data are user account, product catalog bill of material system.
Gaming- Modern games perform graphical processing on mobile/console clients, but rely on the cloud to deliver customized and personalized content like in-game stats, social media integration, and high-score leader boards. Real time example locates players by their internal players IDs, Game centre, Google IDs. Social features including game chat message, challenges completed.
Web and Mobile Applications
Azure Cosmos DB is commonly used within web and mobile applications, and is well suited for modeling social interactions, integrating with third-party services, and for building rich personalized experiences. The cosmos DB can be used to generate rich IOS and Android application using the popular Xamarian frame work.
Social Applications
We use social network to keep in touch with friends, family or sometime passion with people who are common in social sites. A common use case for Azure Cosmos DB is to store and query user generated content (UGC) for web, mobile and social media applications. Some examples of UGC are chat sessions, tweets, blog posts, ratings, and comments.
Advantages-
Azure cosmos DB supported .Net, C#, JavaScript MongoDB client drivers written for various programming languages. It also support APIs and other access methods DocumentDB AP, IGraph API (Gremlin), MongoDB, Restful HTTP API, Table API and also supported Server-Side Scripts like JavaScript.
DB API is no longer limited to just one platform and you gain all the tools that you need. You can also enjoy the features (including the tunable consistency levels) that you have adored with DocumentDB. Most other database systems only offer two: eventual consistency and strong consistency.
Costing of Azure Cosmos-
Azure cosmos is high built availability without any extra configuration, cost, and replication. It is also simple scaling dynamically change compute in seconds and scale storage independently. It has flexible pricing which choose resources for your workload with no hidden cost.