CosmosDB API for MongoDB benefits and restrictions?

adnan brotlic 21 Reputation points

Hi all

We’re about to start one of our projects using MongoDB - we have requirement that project needs to be deployed to Azure services but also it should be cloud-agnostic as well so we can easily switch to another solution if needed.

Since I don’t have experience with CosmosDB and it’s api for MongoDB, can someone pls provide more details about:

  • restrictions (if exists in terms of cloud-agnostic) using cosmos api for mongoDB?
  • is there any MongoDB Net Core library we can use to work with ComsosDB directly - if yes what are the benefits using mongoDB net core library over cosmos api for mongoDB etc?

Much appreciated.


Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,050 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
996 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,906 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mark Brown - MSFT 2,751 Reputation points Microsoft Employee

    The MongoDB API for Cosmos DB is compatible with Mongo server versions 3.2, 3.6 and recently 4.0. You can use any MongoDB driver to connect and do CRUD operations on your data.

    For more details on compatibility see, Azure Cosmos DB's API for MongoDB (4.0 server version): supported features and syntax

0 additional answers

Sort by: Most helpful