Multi-region: active-passive and active-active
When a second region is worth it, how active-passive fails over, what active-active costs in capacity and conflicts, and why a cross-region commit costs a round trip.
30 min6 steps
By the end you can
- Choose between active-passive and active-active for a workload's RPO, RTO and consistency needs
- Size each region so the survivors can absorb a failed region's traffic
- Choose how an active-active design handles concurrent writes to the same data
- Estimate the commit latency of a write that needs a cross-region majority
Active-passive: one region writes
The survivors must carry the peak
- 2 regions: survivor300 units (100% of peak)
- 3 regions: each survivor150 units (peak / 2)
- 4 regions: each survivor100 units (peak / 3)
Loading question…
Active-active writes: who wins?
Home region
- One writer per record
- No conflicts
- Region down: users blocked until re-homed
Merge
- LWW silently loses one
- CRDTs keep both, some types only
Agree first
- Consensus (Spanner)
- One order everywhere
- Cross-region round trip per write
The price of agreeing across regions
- Same zone1 ms
- US coast to coast70 ms
- Between continents130 ms
Log scale: each gridline step is 10×.
Loading question…
Check your mastery
Chaos
crash 1 replica
Scenario tab
Check
survivors saturate?
Scale tab
Score 80% or more. In the sandbox, add a replica crash to the chaos timeline, then run the Scale tab.
Mastery check
4 questions on fresh variants. One attempt each, no time limit. Score 80% or more to master the lesson.
Answer this step to continue.