Skip to content

Commit 9799c2c

Browse files
Merge pull request #272461 from wmwxwa/patch-23
Fix most visible mentions of "RU" & "vCore"
2 parents d94974b + 0a1d424 commit 9799c2c

File tree

12 files changed

+128
-136
lines changed

12 files changed

+128
-136
lines changed

articles/cosmos-db/mongodb/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
href: cosmos-db-vs-mongodb-atlas.md
99
- name: RU
1010
items:
11-
- name: MongoDB RU documentation
11+
- name: MongoDB (RU) documentation
1212
href: index.yml
1313
- name: Overview
1414
items:
15-
- name: What is Azure Cosmos DB for MongoDB RU?
15+
- name: What is Azure Cosmos DB for MongoDB (RU)?
1616
href: ru/introduction.md
1717
- name: API versions
1818
items:

articles/cosmos-db/mongodb/faq.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
### YamlMime:FAQ
22
metadata:
33
title: Frequently asked questions
4-
titleSuffix: Azure Cosmos DB for MongoDB RU
5-
description: Get answers to frequently asked questions about Azure Cosmos DB for MongoDB RU.
4+
titleSuffix: Azure Cosmos DB for MongoDB (RU)
5+
description: Get answers to frequently asked questions about RU-based Azure Cosmos DB for MongoDB.
66
author: seesharprun
77
ms.author: sidandrews
88
ms.reviewer: gahllevy
99
ms.service: cosmos-db
1010
ms.subservice: mongodb
1111
ms.topic: faq
1212
ms.date: 02/23/2024
13-
title: Frequently asked questions on Azure Cosmos DB for MongoDB RU
13+
title: Frequently asked questions on Azure Cosmos DB for MongoDB in RU architecture
1414
summary: |
1515
[!INCLUDE[MongoDB](../includes/appliesto-mongodb.md)]
1616
sections:
1717
- name: General FAQ
1818
questions:
1919
- question: |
20-
Does Azure Cosmos DB for MongoDB RU support my data residency requirements?
20+
Does Azure Cosmos DB for MongoDB (RU) support my data residency requirements?
2121
answer: |
2222
Yes, data residency is governed at the database account level, which is associated with one or more regions. Typically, you 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.
2323
- question: |
24-
Does Azure Cosmos DB for MongoDB RU support documents larger than 2 MB?
24+
Does Azure Cosmos DB for MongoDB (RU) support documents larger than 2 MB?
2525
answer: |
2626
Yes, documents as large as 16 MB are fully supported.
2727
- question: |
28-
Does Azure Cosmos DB for MongoDB RU support multi-field sort?
28+
Does Azure Cosmos DB for MongoDB (RU) support multi-field sort?
2929
answer: |
3030
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.
3131
- question: |
32-
Does Azure Cosmos DB for MongoDB RU scale linearly?
32+
Does Azure Cosmos DB for MongoDB (RU) scale linearly?
3333
answer: |
3434
In many cases, Azure Cosmos DB's costs scale better than linear. For example, if you read a 1-KB document, this operation equates to one Request Unit (RU). But if you read a 10-KB document, this larger operation still equates to roughly one RU. The [capacity calculator](https://cosmos.azure.com/capacitycalculator/) can help you estimate your throughput needs.
3535
- question: |
36-
How can I encrypt Azure Cosmos DB for MongoDB RU data and manage access at the field level?
36+
How can I encrypt Azure Cosmos DB for MongoDB (RU) data and manage access at the field level?
3737
answer: |
38-
Azure Cosmos DB for MongoDB RU supports Field Level Encryption.
38+
Azure Cosmos DB for MongoDB (RU) supports Field Level Encryption.
3939
- question: |
40-
How do I pay for Azure Cosmos DB for MongoDB RU Request Units (RUs)?
40+
How do I pay for Azure Cosmos DB for MongoDB (RU) Request Units (RUs)?
4141
answer: |
42-
Azure Cosmos DB for MongoDB RU offers three capacity modes: provisioned throughput, autoscale, and serverless. Autoscale instantaneously scales to meet your needs, and serverless only charges for the throughput you use.
42+
Azure Cosmos DB for MongoDB (RU) offers three capacity modes: provisioned throughput, autoscale, and serverless. Autoscale instantaneously scales to meet your needs, and serverless only charges for the throughput you use.
4343
- question: |
44-
Which features are supported in Azure Cosmos DB for MongoDB RU?
44+
Which features are supported in Azure Cosmos DB for MongoDB (RU)?
4545
answer: |
46-
Azure Cosmos DB for MongoDB RU supports a rich set of MongoDB features backed by Azure Cosmos DB's limitless scale architecture. These features include: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. For more information, see [feature support matrix](feature-support-42.md).
46+
Azure Cosmos DB for MongoDB (RU) supports a rich set of MongoDB features backed by Azure Cosmos DB's limitless scale architecture. These features include: Aggregation pipelines, Change streams, Indexes, Geospatial queries, and more. For more information, see [feature support matrix](feature-support-42.md).
4747
- question: |
48-
Does Azure Cosmos DB for MongoDB RU run on-premises?
48+
Does Azure Cosmos DB for MongoDB (RU) run on-premises?
4949
answer: |
50-
Azure Cosmos DB for MongoDB RU is a cloud-native multitenant service and isn't available on-premises. Azure Cosmos DB offers an [emulator for local development and testing](../emulator.md).
50+
Azure Cosmos DB for MongoDB (RU) is a cloud-native multitenant service and isn't available on-premises. Azure Cosmos DB offers an [emulator for local development and testing](../emulator.md).
5151
- question: |
52-
How do I connect to my Azure Cosmos DB for MongoDB RU database?
52+
How do I connect to my Azure Cosmos DB for MongoDB (RU) database?
5353
answer: |
54-
The quickest way to connect to an Azure Cosmos DB for MongoDB RU database is to use the **Quick Start** feature within the resource's page in the [Azure portal](https://portal.azure.com). The Quick Start includes code snippets preconfigured to connect to your database.
54+
The quickest way to connect to an Azure Cosmos DB for MongoDB (RU) database is to use the **Quick Start** feature within the resource's page in the [Azure portal](https://portal.azure.com). The Quick Start includes code snippets preconfigured to connect to your database.
5555
5656
Azure Cosmos DB enforces strict security requirements and standards. Azure Cosmos DB accounts require authentication and secure communication via transport layer security (TLS/SSL). In any examples you build, use TLS/SSL version 1.2.
5757
58-
For more information, see [Connect to your API for MongoDB RU database](connect-account.md).
58+
For more information, see [Connect to your API for MongoDB (RU) database](connect-account.md).
5959
- question: |
60-
What do the error codes mean while using Azure Cosmos DB for MongoDB RU?
60+
What do the error codes mean while using Azure Cosmos DB for MongoDB (RU)?
6161
answer: |
62-
Along with the common MongoDB error codes, Azure Cosmos DB for MongoDB RU has its own specific error codes. For more information, see [API for MongoDB RU troubleshooting guide](error-codes-solutions.md).
62+
Along with the common MongoDB error codes, Azure Cosmos DB for MongoDB (RU) has its own specific error codes. For more information, see [API for MongoDB (RU) troubleshooting guide](error-codes-solutions.md).
6363
- question: |
64-
Are non-Microsoft drivers for MongoDB supported for use with Azure Cosmos DB for MongoDB RU?
64+
Are non-Microsoft drivers for MongoDB supported for use with Azure Cosmos DB for MongoDB (RU)?
6565
answer: |
66-
Yes, you can use non-Microsoft MongoDB Open Database Connectivity (ODBC) drivers with Azure Cosmos DB for MongoDB RU.
66+
Yes, you can use non-Microsoft MongoDB Open Database Connectivity (ODBC) drivers with Azure Cosmos DB for MongoDB (RU).
6767
additionalContent: |
6868
## Related content
6969
7070
- [Frequently asked questions about Azure Cosmos DB for MongoDB vCore](vcore/faq.yml)
7171
72-
- [Get started with Azure Cosmos DB for MongoDB RU and Node.js](quickstart-nodejs.md)
73-
- [Get started with Azure Cosmos DB for MongoDB RU and Python](quickstart-python.md)
74-
- [Get started with Azure Cosmos DB for MongoDB RU and Java](quickstart-java.md)
75-
- [Get started with Azure Cosmos DB for MongoDB RU and .NET](quickstart-dotnet.md)
76-
- [Get started with Azure Cosmos DB for MongoDB RU and Go](quickstart-go.md)
72+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Node.js](quickstart-nodejs.md)
73+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Python](quickstart-python.md)
74+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Java](quickstart-java.md)
75+
- [Get started with Azure Cosmos DB for MongoDB (RU) and .NET](quickstart-dotnet.md)
76+
- [Get started with Azure Cosmos DB for MongoDB (RU) and Go](quickstart-go.md)
7777
7878
## Next step
7979

articles/cosmos-db/mongodb/quickstart-go.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Connect a Go application to Azure Cosmos DB's API for MongoDB
3-
description: This quickstart demonstrates how to connect an existing Go application to Azure Cosmos DB's API for MongoDB.
2+
title: Connect a Go application to Azure Cosmos DB for MongoDB
3+
description: This quickstart demonstrates how to connect an existing Go application to Azure Cosmos DB for MongoDB.
44
author: gahl-levy
55
ms.author: gahllevy
66
ms.service: cosmos-db
@@ -10,7 +10,7 @@ ms.topic: quickstart
1010
ms.date: 04/26/2022
1111
ms.custom: mode-api, devx-track-azurecli, devx-track-go
1212
---
13-
# Quickstart: Connect a Go application to Azure Cosmos DB's API for MongoDB
13+
# Quickstart: Connect a Go application to Azure Cosmos DB for MongoDB
1414
[!INCLUDE[MongoDB](../includes/appliesto-mongodb.md)]
1515

1616
> [!div class="op_single_selector"]
@@ -69,7 +69,7 @@ The following snippets are all taken from the `todo.go` file.
6969
7070
### Connecting the Go app to Azure Cosmos DB
7171
72-
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (it is a fail-fast strategy)
72+
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (it'is a fail-fast strategy).
7373

7474
```go
7575
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
@@ -109,7 +109,7 @@ func create(desc string) {
109109
}
110110
```
111111
112-
We pass in a `Todo` struct that contains the description and the status (which is initially set to `pending`)
112+
We pass in a `Todo` struct that contains the description and the status (which is initially set to `pending`):
113113
114114
```go
115115
type Todo struct {
@@ -120,7 +120,7 @@ type Todo struct {
120120
```
121121
### List `todo` items
122122
123-
We can list TODOs based on criteria. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) is created to encapsulate the filter criteria
123+
We can list TODOs based on criteria. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) is created to encapsulate the filter criteria:
124124
125125
```go
126126
func list(status string) {
@@ -153,7 +153,7 @@ func list(status string) {
153153
}
154154
```
155155
156-
Finally, the information is rendered in tabular format
156+
Finally, the information is rendered in tabular format:
157157
158158
```go
159159
todoTable := [][]string{}
@@ -174,7 +174,7 @@ Finally, the information is rendered in tabular format
174174
175175
### Update a `todo` item
176176
177-
A `todo` can be updated based on its `_id`. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) filter is created based on the `_id` and another one is created for the updated information, which is a new status (`completed` or `pending`) in this case. Finally, the [`UpdateOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.UpdateOne) function is invoked with the filter and the updated document
177+
A `todo` can be updated based on its `_id`. A [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) filter is created based on the `_id` and another one is created for the updated information, which is a new status (`completed` or `pending`) in this case. Finally, the [`UpdateOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.UpdateOne) function is invoked with the filter and the updated document:
178178
179179
```go
180180
func update(todoid, newStatus string) {
@@ -194,7 +194,7 @@ func update(todoid, newStatus string) {
194194
195195
### Delete a `todo`
196196
197-
A `todo` is deleted based on its `_id` and it is encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
197+
A `todo` is deleted based on its `_id` and it'is encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
198198
199199
```go
200200
func delete(todoid string) {
@@ -231,27 +231,27 @@ To confirm that the application was built properly.
231231
232232
### Sign in to Azure
233233
234-
If you choose to install and use the CLI locally, this topic requires that you are running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
234+
If you choose to install and use the CLI locally, this topic requires that you're running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
235235
236-
If you are using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
236+
If you're using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
237237
238238
```azurecli
239239
az login
240240
```
241241
242242
### Add the Azure Cosmos DB module
243243
244-
If you are using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
244+
If you're using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
245245
246-
If `cosmosdb` is not in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
246+
If `cosmosdb` isn't in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
247247
248248
### Create a resource group
249249
250-
Create a [resource group](../../azure-resource-manager/management/overview.md) with the [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources like web apps, databases and storage accounts are deployed and managed.
250+
Create a [resource group](../../azure-resource-manager/management/overview.md) with the [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources like web apps, databases, and storage accounts are deployed and managed.
251251
252252
The following example creates a resource group in the West Europe region. Choose a unique name for the resource group.
253253
254-
If you are using Azure Cloud Shell, select **Try It**, follow the onscreen prompts to login, then copy the command into the command prompt.
254+
If you're using Azure Cloud Shell, select **Try It**, follow the onscreen prompts to log in, then copy the command into the command prompt.
255255
256256
```azurecli-interactive
257257
az group create --name myResourceGroup --location "West Europe"
@@ -323,7 +323,7 @@ The Azure CLI outputs information similar to the following example.
323323
## Configure the application
324324
325325
<a name="devconfig"></a>
326-
### Export the connection string, MongoDB database and collection names as environment variables.
326+
### Export the connection string, MongoDB database, and collection names as environment variables.
327327
328328
```bash
329329
export MONGODB_CONNECTION_STRING="mongodb://<COSMOSDB_ACCOUNT_NAME>:<COSMOSDB_PASSWORD>@<COSMOSDB_ACCOUNT_NAME>.documents.azure.com:10255/?ssl=true&replicaSet=globaldb&maxIdleTimeMS=120000&appName=@<COSMOSDB_ACCOUNT_NAME>@"
@@ -371,7 +371,7 @@ List all the `todo`s
371371
./todo --list all
372372
```
373373
374-
You should see the ones you just added in a tabular format as such
374+
You should see the ones you just added in a tabular format as such:
375375
376376
```bash
377377
+----------------------------+--------------------------------+-----------+
@@ -384,7 +384,7 @@ You should see the ones you just added in a tabular format as such
384384
+----------------------------+--------------------------------+-----------+
385385
```
386386
387-
To update the status of a `todo` (e.g. change it to `completed` status), use the `todo` ID
387+
To update the status of a `todo` (e.g. change it to `completed` status), use the `todo` ID:
388388
389389
```bash
390390
./todo --update 5e9fd6b1bcd2fa6bd267d4c4,completed
@@ -396,7 +396,7 @@ List only the completed `todo`s
396396
./todo --list completed
397397
```
398398
399-
You should see the one you just updated
399+
You should see the one you just updated:
400400
401401
```bash
402402
+----------------------------+--------------------------------+-----------+
@@ -418,19 +418,19 @@ In the top Search box, enter **Azure Cosmos DB**. When your Azure Cosmos DB acco
418418
:::image type="content" source="./media/quickstart-go/go-cosmos-db-data-explorer.png" alt-text="Data Explorer showing the newly created document":::
419419
420420
421-
Delete a `todo` using it's ID
421+
Delete a `todo` using its ID:
422422
423423
```bash
424424
./todo --delete 5e9fd6b1bcd2fa6bd267d4c4,completed
425425
```
426426
427-
List the `todo`s to confirm
427+
List the `todo`s to confirm:
428428
429429
```bash
430430
./todo --list all
431431
```
432432
433-
The `todo` you just deleted should not be present
433+
The `todo` you just deleted shouldn't be present:
434434
435435
```bash
436436
+----------------------------+--------------------------------+-----------+

0 commit comments

Comments
 (0)