question

adnanbrotlic-6861 avatar image
0 Votes"
adnanbrotlic-6861 asked ·

CosmosDB API for MongoDB benefits and restrictions?

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-webappsazure-cosmos-dbdotnet-runtime-core
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarkBrownMSFT avatar image
0 Votes"
MarkBrownMSFT answered ·

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

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

More precisely- is it possible to avoid Api for MongoDB and use mongoDB driver to directly communicate to CosmosDB?

0 Votes 0 ·