Summary
Cosmos DB provides a new perspective to the NoSQL database concept, with a wide range of services for various scenarios. Additionally, with Cosmos DB access models, in comparison to relational data models, consumer applications have more responsibility for the referential data integrity. The weak links between the data containers can be used as an advantage by a microservice architecture.
In this chapter, you have created a completely new Cosmos DB resource using the SQL API as our access model. However, other access models were discussed, and we have also executed sample queries on Mongo. Once the Cosmos DB resource was created, you created sample document collections, modeled your data, and implemented simple repository classes to access this data. You now understand the fundamental concepts of Cosmos DB and are ready to use it as your persistence store.
In the next chapter, we will be creating the service layer for our application suite.