Introduction
Multi-Region databases are designed to keep applications available when a single AWS Region experiences an outage or serious degradation. Amazon DynamoDB Global Tables support this architecture by replicating data across Regions.
For applications where stale data is acceptable for a short period, multi-Region eventual consistency can be sufficient. Some workloads, however, require stronger guarantees. For example, an application processing account balances, inventory, reservations, or other sensitive state may need a read in one Region to reflect a successful write from another Region immediately.
DynamoDB Multi-Region Strong Consistency, or MRSC, addresses this requirement. It uses synchronous cross-Region replication and a quorum-based architecture to provide strong consistency across supported Regions. AWS documents MRSC as supporting a Recovery Point Objective (RPO) of zero, while also noting that cross-Region communication increases the latency of writes and strongly consistent reads.
Understanding what happens during a Regional failure is important before adopting MRSC. Strong consistency improves data guarantees, but it also introduces availability and latency considerations that application architects must understand.
What Is Multi-Region Strong Consistency?
DynamoDB Global Tables support two consistency modes:
Multi-Region eventual consistency (MREC)
Multi-Region strong consistency (MRSC)
MREC replicates changes asynchronously between replicas. MRSC synchronously replicates an item change to another participating Region before the write returns successfully. Strongly consistent reads against an MRSC replica return the latest version of the item.
A simplified MRSC architecture looks like this:
DynamoDB Global Table
|
+-------------+-------------+
| | |
v v v
Region A Region B Region C
Replica Replica Witness/
Replica
| | |
+-------------+-------------+
Quorum
MRSC deployments use three participating Regions, either as three replicas or two replicas and a DynamoDB-managed witness. The witness does not appear as a normal DynamoDB table in your AWS account.
How a Write Works
With a normal single-Region DynamoDB table, a successful write is completed within that Region.
With MRSC, the write has a multi-Region coordination requirement.
Conceptually:
Application
|
v
Region A
|
+----> Replication to participating Region
|
v
Quorum Established
|
v
Write Success
This additional coordination is what allows strongly consistent reads across participating Regions.
It also means that MRSC writes can have higher latency than writes against an MREC global table because cross-Region communication is involved. AWS recommends testing the intended Region combination against the application's latency requirements rather than assuming that all Region combinations will perform identically.
What Happens During a Regional Failure?
This is where the architecture becomes particularly important.
Suppose an MRSC global table has:
Region A
Region B
Region C
and Region A becomes unavailable.
The remaining participating Regions can continue servicing operations when the required quorum is available.
Conceptually:
Region A
X
|
| Regional failure
|
Region B <----> Region C
\ /
Quorum
The application still needs its traffic-routing layer to direct requests to a healthy application endpoint. DynamoDB Global Tables do not provide a single global endpoint that automatically moves application traffic between Regions. AWS recommends that applications use the local DynamoDB endpoint in the Region where the application is running and use application-level traffic routing during Regional problems.
This distinction is important:
DynamoDB replication provides data resilience, while application architecture provides traffic failover.
What If a Region Comes Back?
Suppose Region A goes offline and later becomes available again.
DynamoDB automatically catches the Region up with the global table. Until synchronization is complete, writes and strongly consistent reads directed to the recovering Region can return errors. Eventually consistent reads can return the data that has already propagated locally. No separate manual synchronization process is required to bring the replica back into alignment.
The application should therefore avoid immediately routing normal production traffic back to a recovering Region simply because the underlying infrastructure has become reachable.
Traffic recovery should consider application health as well as database synchronization state.
Strong Consistency Does Not Mean Everything Is Available During Failure
One of the easiest misconceptions is:
Strong consistency means every Region can continue serving every operation during every failure.
That is not how MRSC works.
The local Region can accept reads and writes while another participating Region is available to establish the required quorum. If a second Region or witness is unavailable, the local Region's capabilities are restricted; AWS documents that only eventually consistent reads can be serviced when the required quorum cannot be established.
This creates an important architectural trade-off.
Requirement | MRSC behavior |
|---|---|
Strong cross-Region reads | Supported |
RPO | Zero |
Cross-Region write coordination | Required |
Write latency | Higher than MREC in general |
Regional failure recovery | Requires application traffic failover |
Quorum dependency | Yes |
Automatic replica catch-up | Yes |
Strong consistency therefore needs to be evaluated together with availability requirements.
Handling Write Conflicts
MRSC supports active-active writes, meaning participating replicas can accept writes.
However, two Regions attempting to modify the same item at the same time can create a replicated write conflict.
DynamoDB reports this situation using:
ReplicatedWriteConflictException
A failed write can be retried after the conflicting operation has completed.
For example:
try
{
await dynamoDb.UpdateItemAsync(request);
}
catch (ReplicatedWriteConflictException)
{
// Apply an appropriate retry policy.
}
The retry strategy should use bounded retries and backoff rather than repeatedly sending requests without delay.
For important business operations, application-level concurrency controls should also be considered.
Design for Regional Traffic Failover
A multi-Region database does not automatically make the complete application multi-Region.
Consider this architecture:
Join the conversation! Your thoughts help the community grow.