You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/mongodb/introduction.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,33 +26,37 @@ Azure Cosmos DB for MongoDB makes it easy to use Azure Cosmos DB as if it were a
26
26
27
27
## API for MongoDB benefits
28
28
29
-
The API for MongoDB has added benefits of being built on Azure Cosmos DB when compared to service offerings such as MongoDB Atlas:
29
+
The API for MongoDB has numerous added benefits of being built on Azure Cosmos DB when compared to service offerings such as MongoDB Atlas:
30
30
31
-
-**Instantaneous scalability**: With the [Autoscale](../provision-throughput-autoscale.md) feature, your database can scale up to 10x with zero warmup period instantly. Other MongoDB offerings such as MongoDB Atlas can take hours to scale up and up to days to scale down.
31
+
-**Instantaneous scalability**: With the [Autoscale](../provision-throughput-autoscale.md) feature, your database scales instantaneously with zero warmup period. Other MongoDB offerings such as MongoDB Atlas can take hours to scale up and up to days to scale down.
32
32
33
33
-**Automatic and transparent sharding**: The API for MongoDB manages all of the infrastructure for you. This management includes sharding and optimizing the number of shards. Other MongoDB offerings such as MongoDB Atlas, require you to specify and manage sharding to horizontally scale. This automation gives you more time to focus on developing applications for your users.
34
34
35
35
-**Five 9's of availability**: [99.999% availability](../high-availability.md) is easily configurable to ensure your data is always there for you.
36
36
37
-
-**Active-active databases**: Unlike MongoDB Atlas, Cosmos DB for MongoDB supports active-active across multiple regions. Databases can span multiple regions, with no single point of failure for **writes and reads for the same data**. MongoDB Atlas global clusters only support active-passive deployments across regions.
37
+
-**Active-active database**: Unlike MongoDB Atlas, Cosmos DB for MongoDB supports active-active across multiple regions. Databases can span multiple regions, with no single point of failure for **writes and reads for the same data**. MongoDB Atlas global clusters only support active-passive deployments for writes for the same data.
38
38
39
-
-**Cost efficient, granular, unlimited scalability**: Sharded collections can scale to any size, unlike other MongoDB service offerings. APIs for MongoDB users are running databases with over 600 TB of storage today. Scaling is done in a cost-efficient manner unlike other MongoDB service offerings. The Azure Cosmos DB platform can scale in increments as small as 1/100th of a VM due to economies of scale and resource governance.
39
+
-**Cost efficient, granular, unlimited scalability**: Sharded collections can scale to any size, unlike other MongoDB service offerings. Scaling is done in a cost-efficient manner unlike other MongoDB service offerings. The Azure Cosmos DB platform can scale in increments as small as 1/100th of a VM due to its architecture. This means that you can scale your database to the exact size you need, without paying for unused resources.
40
40
41
-
-**Serverless deployments**: Cosmos DB for MongoDB is a cloud native database that offers a [serverless capacity mode](../serverless.md). With [Serverless](../serverless.md), you're only charged per operation, and don't pay for the database when you don't use it.
41
+
-**Serverless deployments**: Cosmos DB for MongoDB offers a [serverless capacity mode](../serverless.md). With [Serverless](../serverless.md), you're only charged per operation, and don't pay for the database when you don't use it.
42
42
43
-
-**Free Tier**: With Azure Cosmos DB free tier, you get the first 1000 RU/s and 25 GB of storage in your account for free forever, applied at the account level.
43
+
-**Free Tier**: With Azure Cosmos DB free tier, you get the first 1000 RU/s and 25 GB of storage in your account for free forever, applied at the account level. Free tier accounts are [sandboxed](https://learn.microsoft.com/en-us/azure/cosmos-db/limit-total-account-throughput#set-the-total-throughput-limit-from-the-azure-portal).
44
+
45
+
-**Free 7 day Continous Backups**: Azure Cosmos DB for MongoDB offers free 7 day continuous backups for any amount of data. This means that you can restore your database to any point in time within the last 7 days.
44
46
45
47
-**Upgrades take seconds**: All API versions are contained within one codebase, making version changes as simple as [flipping a switch](upgrade-version.md), with zero downtime.
46
48
47
49
-**Role Based Access Control**: With Azure Cosmos DB for MongoDB, you can assign granular roles and permissions to users to control access to your data and audit user actions- all using native Azure tooling.
48
50
51
+
-**Flexible single-field indexes**: Unlike single field indexes in MongoDB Atlas, [single field indexes in Cosmos DB for MongoDB](indexing.md) cover multi-field filters. There is no need to create compound indexes for each multi-field query. This increases developer productivity.
52
+
49
53
-**Real time analytics (HTAP) at any scale**: Cosmos DB for MongoDB offers the ability to run complex analytical queries. Use cases for these queries include business intelligence that can run against your database data in real time with no effect on your database. This analysis is fast and inexpensive, due to the cloud native analytical columnar store being utilized, with no ETL pipelines. Learn more about the [Azure Synapse Link](../synapse-link.md).
50
54
51
-
-**In-depth monitoring capabilities**: Cosmos DB for MongoDB integrates with Azure Monitor to provide in-depth monitoring capabilities.
55
+
-**In-depth monitoring capabilities**: Cosmos DB for MongoDB integrates natively with [Azure Monitor](https://learn.microsoft.com/azure/azure-monitor/overview) to provide in-depth monitoring capabilities.
52
56
53
-
## How the API for MongoDB works
57
+
## How Cosmos DB for MongoDB works
54
58
55
-
The API for MongoDB implements the wire protocol for MongoDB. This implementation allows transparent compatibility with native MongoDB client SDKs, drivers, and tools. Azure Cosmos DB doesn't host the MongoDB database engine. Any MongoDB client driver compatible with the API version you're using should be able to connect, with no special configuration.
59
+
Cosmos DB for MongoDB implements the wire protocol for MongoDB. This implementation allows transparent compatibility with MongoDB client SDKs, drivers, and tools. Azure Cosmos DB doesn't host the MongoDB database engine. Any MongoDB client driver compatible with the API version you're using should be able to connect, with no special configuration.
56
60
57
61
> [!IMPORTANT]
58
62
> This article describes a feature of Azure Cosmos DB that provides wire protocol compatibility with MongoDB databases. Microsoft does not run MongoDB databases to provide this service. Azure Cosmos DB is not affiliated with MongoDB, Inc.
@@ -69,7 +73,7 @@ The API for MongoDB is compatible with the following MongoDB server versions:
69
73
70
74
### Choosing a server version
71
75
72
-
All the APIs for MongoDB versions run on the same codebase, making upgrades a simple task that can be completed in seconds with zero downtime. Azure Cosmos DB simply flips a few feature flags to go from one version to another. The feature flags also enable continued support for older API versions such as 3.2 and 3.6. You can choose the server version that works best for you.
76
+
All versions run on the same codebase, making upgrades a simple task that can be completed in seconds with zero downtime. Azure Cosmos DB simply flips a few feature flags to go from one version to another. The feature flags also enable continued support for older API versions such as 3.2 and 3.6. You can choose the server version that works best for you.
73
77
74
78
## What you need to know to get started
75
79
@@ -89,31 +93,35 @@ All the APIs for MongoDB versions run on the same codebase, making upgrades a si
89
93
90
94
1. Does Cosmos DB for MongoDB support my data residency requirements?
91
95
92
-
Yes, data residency is governed at the Database account level which is associated with one or more regions. Customers typically create a database account for each residency requirement. For example, if you have a requirement to store data in the US and EU, you would create two database accounts, one in the US and one in the EU.
96
+
Yes, data residency is governed at the database account level which is associated with one or more regions. Customers typically create a database account for each residency requirement. For example, if you have a requirement to store data in the US and EU, you would create two database accounts, one in the US and one in the EU.
93
97
94
98
2. Does Cosmos DB for MongoDB support documents larger than 2 MB?
95
99
96
-
Yes, documents as large as 16 MB are supported.
100
+
Yes, documents as large as 16 MB are fully supported.
97
101
98
102
3. Does Cosmos DB for MongoDB support multi-field sort?
99
103
100
104
Yes, multi-field sort is supported. A compound index is required for the fields in the sort to ensure the operation is efficient and scalable.
101
105
106
+
4. Does Cosmos DB for MongoDB scale linearly?
107
+
108
+
In many cases, Cosmos DB scales better than linearly. For example, if you read a 1KB document, this equates to 1 RU. But if you read a 10KB documents, this still equates to roughly 1RU. The [Cosmos DB capacity calculator](https://cosmos.azure.com/capacitycalculator/) can help you estimate your throughput needs.
109
+
102
110
4. How can I encrypt data and manage access at the field level?
103
111
104
112
Cosmos DB for MongoDB supports Field Level Encryption.
105
113
106
114
5. How do I pay for Request Units (RUs)?
107
115
108
-
Cosmos DB for MongoDB offers thre capacity modes: provisioned throughput, autoscale, and serverless. None require an upfront commitment. Autoscale instantaneously scales to meet your needs (with a 10% minimum charge), and serverless only charges for the throughput you use.
116
+
Cosmos DB for MongoDB offers thre capacity modes: provisioned throughput, autoscale, and serverless. **None require an upfront commitment**. Autoscale instantaneously scales to meet your needs, and serverless only charges for the throughput you use.
109
117
110
118
6. Which features are supported in Cosmos DB for MongoDB?
111
119
112
-
Cosmos DB for MongoDB supports a rich set of MongoDB features, including: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. See the [feature support matrix](feature-support-42.md) for more details.
120
+
Cosmos DB for MongoDB supports a rich set of MongoDB features backed by Cosmos DB's limitless scale architecture. These features include: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. See the [feature support matrix](feature-support-42.md) for more details.
113
121
114
122
4. Does Cosmos DB for MongoDB run on-premises?
115
123
116
-
Cosmos DB for MongoDB is a cloud-native multi-tenant service and is not available on-premises. Cosmos DB does offer an emulator for local development and testing.
124
+
Cosmos DB for MongoDB is a cloud-native multi-tenant service and is not available on-premises. Cosmos DB offers an [emulator for local development and testing](https://learn.microsoft.com/en-us/azure/cosmos-db/local-emulator).
0 commit comments