LOAD-BEARINGfree
High-level designTier 14 · unit 1 of 12 · 13 min read

Multi-region, and why it hurts

Everything so far quietly assumed one region — all your machines in one metro, sub-millisecond apart. Three forces eventually break that assumption: latency (your users in São Paulo are 300 ms from your Mumbai servers, and Tier 0 said physics won't budge), survival (a whole region can go down — it's rare and it happens, and for some businesses that day is fatal), and increasingly, law: data-residency rules saying data about country X's citizens must stay on soil of country X. The first two are engineering judgments; the third is not optional, and it shows up in Indian fintech constantly.

The reason multi-region deserves a whole lesson: crossing regions means every inter-node conversation costs 50–200 ms instead of ~1 ms, and that hundred-fold tax transforms which designs are viable. Patterns that were free in one region become unaffordable across three. There are three shapes, in rising order of pain:

Active–passive: one serves, one waits

Region A takes all traffic; region B replicates continuously and stands by. Simplest by far — no conflicts, no coordination, one source of truth at a time. The costs: B is expensive idleness; failover takes minutes and loses the replication lag (next section); and the classic bitter discovery — the standby doesn't actually work. It's been quietly misconfigured for months (stale credentials, missing firewall rule, undersized instances) and nobody noticed, because nobody ever used it — you find out during the real disaster, which is the worst possible moment for discovery. The fix is cultural, not technical: fail over on purpose, quarterly. A failover you've never rehearsed is a hope, not a plan.

Active–active, partitioned by user: the sweet spot

Both regions serve, but each user has a home region that owns their writes — Indian users' writes land in Mumbai, European users' in Frankfurt. Look at what this dodges: any single record has exactly one writer region, so cross-region write conflicts simply cannot occur. Everyone gets local write latency; cross-region reads may be slightly stale, which for "viewing someone else's profile" is invisible. For most consumer products, this is the answer — most of the benefit, a fraction of the pain. (It's also Tier 4's shard-key logic promoted to geography: partition so the common case never crosses the expensive boundary.)

Active–active, fully replicated: the deep end

Any region accepts any write to any record. Now two regions can write the same record concurrently, and you've signed up for conflict resolution on everything: last-write-wins (Tier 6 already told you — that's silent data loss), CRDTs (only for data shaped like merges), or synchronous consensus paying a cross-region round trip inside every write, forever — which is what Google Spanner does, with atomic clocks in its datacenters to make it bearable. Some workloads truly need this. Most that think they do actually need the partitioned shape plus honesty about requirements.

RPO and RTO: the two numbers that price a disaster

  • RPO (Recovery Point Objective) — how much data you lose. With async replication lagging 30 seconds, failover loses ~30 seconds of writes: RPO ≈ 30s. Driving RPO to zero means synchronous replication — the cross-region round trip on every write, again. For a social feed, 30 seconds of lost likes is nothing; for a ledger, "we lost 30 seconds of transactions" is a regulator conversation.
  • RTO (Recovery Time Objective) — how much time until you're serving again. Automated failover: minutes. Paging a human to run a runbook: an hour, if the runbook is good.

Both dials cost money roughly exponentially as they approach zero. The staff-level move is refusing to let them be implicit: ask the business "how much data can we lose, how long can we be down?", write the answers into the design doc, and size the architecture to those numbers — not to a vague feeling that downtime is bad.

The trap

Going multi-region for resilience, but leaving one shared dependency in one region — the auth service, the config store, that one legacy database everyone forgot. When its region dies, both regions die, and you've been paying double infrastructure for redundancy you never actually had. The audit that finds this is boring and priceless: for every component, ask "when region A vanishes, does this still answer?" No exceptions granted — the exception is exactly where the outage lives.