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/how-to-configure-multi-region-write.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.author: gahllevy
13
13
14
14
Multi-region writes in Azure Cosmos DB for MongoDB enable your clients to write to multiple regions. This results in lower latency and better availability for your writes. It's important to note that unlike other MongoDB services, Azure Cosmos DB for MongoDB enables you to write data from the same shard to multiple regions. Multi-region writes is a true active-active setup.
15
15
16
-
###Configure in Azure Portal
16
+
## Configure in Azure portal
17
17
To enable multi-region writes from Azure portal, use the following steps:
18
18
19
19
1. Sign-in to the [Azure portal](https://portal.azure.com/).
@@ -26,10 +26,10 @@ To enable multi-region writes from Azure portal, use the following steps:
26
26
27
27
1. After you update the region list, select **save** to apply the changes.
28
28
29
-
:::image type="content" source="./media/how-to-multi-region-write/enable-multi-region-writes.png" alt-text="Screenshot to enable multi-region writes using Azure portal" lightbox="./media/how-to-multi-region-write/enable-multi-region-writes.png":::
29
+
:::image type="content" source="./media/how-to-multi-region-write/enable-multi-region-writes.png" alt-text="Screenshot to enable multi-region writes using Azure portal." lightbox="./media/how-to-multi-region-write/enable-multi-region-writes.png":::
30
30
31
31
32
-
###Connect your client
32
+
## Connect your client
33
33
MongoDB connection strings supports the “appName” parameter, which is a means to identify client workloads. appName is used to identify the preferred write region for your connection. AppName can be specified in the connection string or using SDK specific initialization methods/properties.
34
34
35
35
The appName parameter can be in one of the following formats:
On multi-region write accounts, Azure Portal supports generation of region-specific connection strings to encode the preferred region list. Selecting the preferred region dropdown will change the appName in the connection string to set the preferred write region. Simply copy the connection string after setting the preferred region.
43
+
On multi-region write accounts, Azure portal supports generation of region-specific connection strings to encode the preferred region list. Selecting the preferred region dropdown will change the appName in the connection string to set the preferred write region. Simply copy the connection string after setting the preferred region.
44
44
45
-
:::image type="content" source="./media/how-to-multi-region-write/connect-multi-region-writes.png" alt-text="Screenshot to connect to multi-region writes account using Azure portal" lightbox="./media/how-to-multi-region-write/connect-multi-region-writes.png":::
45
+
:::image type="content" source="./media/how-to-multi-region-write/connect-multi-region-writes.png" alt-text="Screenshot to connect to multi-region writes account using Azure portal." lightbox="./media/how-to-multi-region-write/connect-multi-region-writes.png":::
46
46
47
47
We recommend applications deployed to different regions to use the region-specific connection string with the correct preferred region for low-latency writes.
0 commit comments