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.
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.
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.
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.