CosmosDB API for MongoDB benefits and restrictions?

adnan brotlic 21 Reputation points
2021-03-09T15:44:47.3+00:00

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.

Thanks.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,437 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,827 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mark Brown - MSFT 2,761 Reputation points Microsoft Employee
    2021-03-09T16:18:57.907+00:00

    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