Lab · Architecture at scale
Multi-region & disaster recovery
Users in the US and Europe, a region on each side. Choose one region, active-passive or active-active. Then fail a region or cut the link between them. Measure latency, downtime (RTO), lost writes (RPO), conflicts and the cost of the standby.
Try it
- US users — → US East — healthy — p50 35 ms
- EU users — → EU West — healthy — p50 35 ms
- US East — primary · takes writes — healthy — 100% capacity
- EU West — standby replica — healthy — 50% capacity
- Witness — third site · votes on failover — healthy
- Request/response
- Replication link
- Read
- Write
- Copied change
Availability
100.0%
requests that succeeded
Write outage
0 ms
longest, as users saw it (RTO)
Lost writes
0
acknowledged, now missing (RPO)
US (The time within which half of all requests finish.)
35 ms
EU (The time within which half of all requests finish.)
35 ms
Write (The time within which 99 out of 100 requests finish. The slowest 1% take longer.)
125 ms
Stale reads
0
reads served by the nearby region
Conflicts
0
Shed
0
writes refused: over capacity
Split brain
0 ms
time with two primaries
Standby cost
50%
of a full region (illustrative)
Numbers add up:requests 38 = succeeded 38 + failed 0 + in flight 0; no region holds a write its origin never madeThe lab checks this sum as it runs, so a counting mistake would show here.
Controls
Follow a request
Pause to pick a request that is on screen.
Show data table
| Time | Availability |
|---|---|
| 1s | 100 |
| 1s | 100 |
| 2s | 100 |
| 2s | 100 |
| 3s | 100 |
| 3s | 100 |
Show data table
| Time | Missing |
|---|---|
| 1s | 0 |
| 1s | 0 |
| 2s | 0 |
| 2s | 0 |
| 3s | 0 |
| 3s | 0 |
Show data table
| Time | p99 |
|---|---|
| 1s | 125 |
| 1s | 125 |
| 2s | 125 |
| 2s | 125 |
| 3s | 125 |
| 3s | 125 |
What just happened
Nothing yet. Start traffic or run an experiment.
What this model simplifies
- Two regions and one database per region. Round trips are fixed: 30 ms to a nearby region, 100 ms across the ocean, 90 ms between regions.
- Every piece of data is a counter, so "lost" is exact. Real data (profiles, orders) usually cannot be merged and needs a single home region per record or application-level reconciliation.
- Health checks notice a dead region after a fixed time; DNS repointing is modelled as each user honouring the TTL exactly. Real clients and resolvers often cache longer.
- When split brain heals, the newer primary wins automatically. Real systems fence the old primary (epochs, lease revocation) and often need manual reconciliation.
- Capacity limits only writes, and scale-up is a fixed delay. Standby cost is a rough share of a full region, not a price.
- There is no failback: a recovered primary stays a replica until you change roles.