Cosmos DB is a cloud-based NoSQL database offering from Microsoft. It’s very similar to MongoDB and in fact, one of the most common ways that Cosmos data is stored is nearly identical to MongoDB. Many of Microsoft’s services use Cosmos including Xbox, Microsoft Office, and Active Directory. There are many pros and cons to using a NoSQL database structure. I suggest reading more about Cosmos and NoSQL before deciding if its the appropriate data storage solution for your feature or application.

Even though Cosmos is a cloud-based solution, you can still use Cosmos locally by using the Azure Cosmos Emulator. The Azure Cosmos Emulator can be executed within Windows or within a Docker container. In addition, there’s a VS Code plugin which you can download here: