Skip to content

Commit ca9b21d

Browse files
authored
DOCSP-34449 - Cosmos DB comparison page (#938)
1 parent 99df380 commit ca9b21d

File tree

6 files changed

+103
-1
lines changed

6 files changed

+103
-1
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ toc_landing_pages = [
99
"/use-cases",
1010
"/ruby-drivers",
1111
"/csharp-drivers",
12+
"/other-document-dbs",
1213
]
1314

1415
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]

source/cosmosdb-support.txt

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
.. _cosmosdb-compat:
2+
3+
:noprevnext:
4+
5+
=============================
6+
Azure Cosmos DB Compatibility
7+
=============================
8+
9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: microsoft, support
15+
16+
.. contents:: On this page
17+
:local:
18+
:backlinks: none
19+
:depth: 1
20+
21+
.. figure:: /figures/cosmosdb.png
22+
:alt: Azure Cosmos DB logo
23+
24+
`Azure Cosmos DB for MongoDB <https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/introduction>`__
25+
makes it easy to use Azure Cosmos DB as if it were a MongoDB database.
26+
With Azure Cosmos DB, you can run the same application code and use the same drivers
27+
and tools that you use with MongoDB.
28+
29+
Azure Cosmos DB for MongoDB implements MongoDB's
30+
`Wire Protocol <https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/>`__
31+
to allow MongoDB `drivers <https://www.mongodb.com/docs/drivers/>`__ to connect and
32+
interact with Cosmos DB as though it were a MongoDB host. However, this
33+
implementation has limitations, as outlined in the :ref:`cosmosdb-compat-section` section
34+
of this page.
35+
36+
Version Information
37+
-------------------
38+
39+
Azure Cosmos DB supports MongoDB v4.2, or MongoDB v5.0 for vCore clusters.
40+
These versions don't support all the newer features and functionality in the versions of
41+
MongoDB available on `MongoDB Atlas. <https://www.mongodb.com/docs/atlas/>`__
42+
43+
.. tip:: MongoDB Version History
44+
45+
To learn more about the features available in each version of MongoDB, see
46+
`MongoDB Evolved - Version History. <https://www.mongodb.com/evolved>`__
47+
48+
.. _cosmosdb-compat-section:
49+
50+
Compatibility
51+
-------------
52+
53+
As of October 2023, Azure Cosmos DB is about 32 percent compatible with the
54+
MongoDB API.
55+
56+
On Azure Cosmos DB for MongoDB v4.2, the following MongoDB v4.2 features are
57+
available in a limited capacity or are not supported at all:
58+
59+
- **Features**: `Text indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/index-text/>`__,
60+
`2d indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/geospatial/2d/#std-label-2d-index>`__,
61+
`hashed indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/index-hashed/#std-label-index-type-hashed>`__,
62+
`case-insensitive indexes <https://www.mongodb.com/docs/manual/core/index-case-insensitive/>`__,
63+
`sparse indexes <https://www.mongodb.com/docs/manual/core/index-sparse/>`__
64+
- **Aggregation Stages**: ``$collStats``, ``$bucket``, ``$bucketAuto``, ``$currentOp``,
65+
``$indexStats``, ``$listLocalSessions``, ``$listSessions``, ``$lookup``
66+
67+
To learn more about Azure Cosmos DB's compatibility with MongoDB v4.2,
68+
see Microsoft's `Azure Cosmos DB for MongoDB (4.2 server version): Supported features and syntax <https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/feature-support-42>`__
69+
documentation.
70+
71+
For the most current compatibility status between Azure Cosmos DB and MongoDB, see the
72+
`Is Cosmos DB Compatible with MongoDB Atlas? <https://www.iscosmosdbreallymongodb.com/>`__
73+
website.
74+
75+
Support
76+
-------
77+
78+
MongoDB doesn't offer commercial support for Azure Cosmos DB. For help with this product,
79+
contact `Azure Support. <https://azure.microsoft.com/en-us/support/>`__

source/documentdb-support.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.. _documentdb-compat:
22

3+
:noprevnext:
4+
35
===============================
46
Amazon DocumentDB Compatibility
57
===============================
@@ -75,8 +77,9 @@ see the following AWS documentation:
7577
- `Functional Differences: Amazon DocumentDB and MongoDB <https://docs.aws.amazon.com/documentdb/latest/developerguide/functional-differences.html>`__
7678
- `Supported MongoDB APIs, Operations, and Data Types <https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html>`__
7779

78-
For the most current compatibility status between Amazon DocumentDB and MongoDB, see
80+
For the most current compatibility status between Amazon DocumentDB and MongoDB, see the
7981
`Is Amazon DocumentDB Compatible with MongoDB Atlas? <https://www.isdocumentdbreallymongodb.com/>`__
82+
website.
8083

8184
Support
8285
-------

source/figures/cosmosdb.png

43.8 KB
Loading

source/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ See the following pages for information about other document databases' compatib
150150
with MongoDB:
151151

152152
- :ref:`documentdb-compat`
153+
- :ref:`cosmosdb-compat`
153154

154155
.. toctree::
155156

@@ -168,3 +169,4 @@ with MongoDB:
168169
Swift Driver </swift>
169170
TypeScript </typescript>
170171
About Compatibility Tables <about-compatibility>
172+
Other Document Database Compatibility <other-document-dbs>

source/other-document-dbs.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=====================================
2+
Other Document Database Compatibility
3+
=====================================
4+
5+
.. toctree::
6+
:titlesonly:
7+
:maxdepth: 1
8+
9+
/documentdb-support
10+
/cosmosdb-support
11+
12+
See the following pages for information about other document databases' compatibility
13+
with MongoDB:
14+
15+
- :ref:`documentdb-compat`
16+
- :ref:`cosmosdb-compat`
17+

0 commit comments

Comments
 (0)