Run the system in several regions at once, so users stay served when a whole region goes dark.
Multi-region means running your system in two or more cloud regions (far-apart groups of data centres). Active-active means every region serves live traffic at the same time. Active-passive means one region serves, and another waits as a backup.
Inside one region, multiple availability zones protect you from a data centre failing. A whole region failing is rare, but it happens: a power or network fault, a bad configuration change, or a cloud service outage that spreads. A single-region system is down until the region returns. A multi-region system can carry on from somewhere else.
There are a few levels, often called disaster recovery tiers. They trade cost against how fast you recover.
| Tier | What runs in the second region | Recovery speed | Cost |
|---|---|---|---|
| Backup and restore | Only backups are copied over | Hours | Lowest |
| Pilot light | Data is copied live. Servers are off or tiny, ready to be grown | Tens of minutes | Low |
| Warm standby | A smaller full copy runs all the time, no live traffic | Minutes | Medium |
| Active-active | Full copies serve real users in every region | Seconds (traffic just moves) | Highest |
| Pattern | How writes work | Failover | Main trade-off |
|---|---|---|---|
| Active-passive | One primary region takes all writes. Standby copies it | Promote the standby (minutes) | Simple, but standby is idle and async copies can lose data |
| Active-active, single writer per record | Each record has a home region that owns its writes | Move ownership of that region's records | No conflicts, but far users pay latency for writes |
| Active-active, multi-writer | Any region can write any record | Traffic simply reroutes | Fastest, but conflicts must be merged |
| Regional silos | Each region is its own full system, with its own users | Not shared. Users stay in their region | Great for residency, no global view |
| Copy method | Behaviour | Cost |
|---|---|---|
| Synchronous across regions | Write is confirmed only after another region has it. RPO near zero | Every write waits for an ocean round trip, and it blocks if the link breaks |
| Asynchronous | Write is confirmed locally, copied soon after | Fast, but the lag window of writes can be lost on failover |
| Quorum across regions | A majority of regions must confirm | Survives one region loss, but writes pay cross-region latency |
| Conflict-free data types (CRDTs) | Any region changes it, results always merge | Only works for data shaped as a CRDT |
| Users in | Served from | Round trip |
|---|---|---|
| 🇺🇸 US East (40%) | US East | 10 ms |
| 🇪🇺 Europe (35%) | US East | 90 ms |
| 🌏 Asia (25%) | US East | 190 ms |
Illustrative numbers only: round-trip times, user shares and the conflict estimate are made up to show the shape of the trade-off. Real values depend on your regions, traffic and database.
| Term | Meaning in easy words |
|---|---|
| Region | A geographic area with several data centres |
| Active-passive | One region serves, another waits as a backup |
| Active-active | Several regions serve live traffic at the same time |
| Pilot light | A minimal copy of the system kept ready to be scaled up |
| Warm standby | A smaller but running copy that can take over fast |
| Failover / failback | Moving traffic to another region / moving it back after repair |
| RPO | How much recent data you can afford to lose |
| RTO | How long you can afford to be down |
| Replication lag | How far behind a copy is, which sets the data-loss window |
| Conflict resolution | A rule for choosing or merging two writes to the same data |
| Data residency | A rule that data must stay in a certain country or area |
| Region evacuation | Deliberately moving all traffic out of a region as a test |
| Choice | We gain | We lose |
|---|---|---|
| Active-passive | Simple writes, no conflicts | Idle money, slower failover, some data loss |
| Active-active | Fast failover, local speed | Conflicts, complexity, more cost |
| Sync replication | Almost no data loss | Slow writes and tied availability |
| Async replication | Fast writes | A window of lost writes on failover |
| Short DNS TTL | Traffic moves fast | More DNS queries, and some clients ignore it |