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/high-availability.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ When an Azure Cosmos DB account is deployed in a single region, generally no dat
62
62
63
63
To help you protect against complete data loss that might result from catastrophic disasters in a region, Azure Cosmos DB provides two backup modes:
64
64
65
-
-[Continuous backups](./continuous-backup-restore-introduction.md) back up each region every 100 seconds. They provide the ability to restore your data to any point in time with 1-second granularity. In each region, the backup is dependent on the data committed in that region.
65
+
-[Continuous backups](./continuous-backup-restore-introduction.md) back up each region every 100 seconds. They enable you to restore your data to any point in time with 1-second granularity. In each region, the backup is dependent on the data committed in that region.
66
66
-[Periodic backups](./configure-periodic-backup-restore.md) fully back up all partitions from all containers under your account, with no synchronization across partitions. The minimum backup interval is 1 hour.
67
67
68
68
When an Azure Cosmos DB account is deployed in multiple regions, data durability depends on the consistency level that you configure on the account. The following table details, for all consistency levels, the RPO of an Azure Cosmos DB account that's deployed in at least two regions.
@@ -102,11 +102,15 @@ When you configure an Azure Cosmos DB account for multiple write regions, strong
102
102
103
103
Because of the internal Azure Cosmos DB architecture, using multiple write regions doesn't guarantee write availability during a region outage. The best configuration to achieve high availability during a region outage is a single write region with service-managed failover.
104
104
105
+
#### Conflict-resolution region
106
+
105
107
When an Azure Cosmos DB account is configured with multiple-region writes, one of the regions will act as an arbiter in write conflicts. When such conflicts happen, they're routed to this region for consistent resolution.
106
108
109
+
#### Best practices for multi-region writes
110
+
107
111
Here are some best practices to consider when you're writing to multiple regions.
108
112
109
-
#### Keep local traffic local
113
+
#####Keep local traffic local
110
114
111
115
When you use multiple-region writes, the application should issue read and write traffic that originates in the local region strictly to the local Cosmos DB region. For optimal performance, avoid cross-region calls.
112
116
@@ -118,15 +122,15 @@ It's important for the application to minimize conflicts by avoiding the followi
118
122
119
123
* Using a round-robin policy to determine the target region for a read or write operation on a per-request basis
120
124
121
-
#### Avoid dependency on replication lag
125
+
#####Avoid dependency on replication lag
122
126
123
127
You can't configure multiple-region write accounts for strong consistency. The region that's being written to responds immediately after Azure Cosmos DB replicates the data locally while asynchronously replicating the data globally.
124
128
125
129
Though it's infrequent, a replication lag might occur on one or a few partitions when you're geo-replicating data. Replication lag can occur because of a rare blip in network traffic or higher-than-usual rates of conflict resolution.
126
130
127
131
For instance, an architecture in which the application writes to Region A but reads from Region B introduces a dependency on replication lag between the two regions. However, if the application reads and writes to the same region, performance remains constant even in the presence of replication lag.
128
132
129
-
####Session consistency usage for write operations
133
+
##### Evaluate session consistency usage for write operations
130
134
131
135
In session consistency, you use the session token for both read and write operations.
132
136
@@ -136,9 +140,9 @@ For write operations, Azure Cosmos DB sends the session token to the database wi
136
140
137
141
It's best to use session tokens only for read operations and not for write operations when you're passing session tokens between client instances.
138
142
139
-
####Rapid updates to the same document
143
+
##### Mitigate rapid updates to the same document
140
144
141
-
The server's updates to resolve or confirm the absence of conflicts can collide with writes triggered by the application when the same document is repeatedly updated. Repeated updates in rapid succession to the same document experience higher latencies during conflict resolution.
145
+
The server's updates to resolve or confirm the absence of conflicts can collide with writes triggered by the application when the same document is repeatedly updated. Repeated updates in rapid succession to the same document experience higher latencies during conflict resolution.
142
146
143
147
Although occasional bursts in repeated updates to the same document are inevitable, you might consider exploring an architecture where new documents are created instead if steady-state traffic sees rapid updates to the same document over an extended period.
0 commit comments