Multi-Region Architecture
Most system designs start in one region: a load balancer, some services, a database with replicas in two or three availability zones. That handles a surprising amount: availability zones are separate data centers with independent power and networking, so losing one is survivable. But eventually an interviewer asks one of three questions: What happens if the whole region goes down? How do you serve users in Europe and Asia with low latency? How do you keep EU users' data in the EU? Each one pushes you toward running in more than one region.
Multi-region architecture is not a single pattern but a spectrum, from "a backup copy in another region we can switch to" up to "every region serves reads and writes for everyone." Each step up buys latency or availability and pays for it in consistency, complexity and money. The skill in an interview is picking the cheapest point on the spectrum that meets the requirements, and being precise about what happens to in-flight writes when a region fails.
We'll cover:
- Why multi-region, and the physics that makes it hard.
- The main patterns: active-passive, read-local/write-global, active-active with home regions, and globally consistent databases.
- The supporting pieces: routing, replication, failover, and data residency.
Why Go Multi-Region
There are three distinct reasons, and they lead to different designs:
- Disaster recovery. Survive the loss of an entire region: a large outage at a cloud provider, a bad config pushed region-wide, a natural disaster. Region-wide outages are rare but they do happen, and for some businesses hours of downtime is unacceptable.
- Latency. Serve users from a region near them. A user in Sydney talking to a server in Virginia pays roughly 200 ms per round trip before the server does any work. A page that needs several sequential round trips feels slow.
- Data residency and compliance. Laws and contracts (GDPR, data localization laws in various countries, customer agreements) may require that certain users' data is stored or processed in a specific jurisdiction.
Ask your interviewer which ones apply. "We need to survive a region failure with at most a few minutes of downtime" leads to a very different (and cheaper) design than "users on every continent must get under 100 ms writes."
The Physics
Light in optical fiber travels at about 200,000 km per second, roughly two-thirds of its speed in a vacuum. That's 1 ms of one-way delay per 200 km, and fiber routes are never straight. Typical round-trip times between regions:
| Route | Approx. RTT |
|---|---|
| Two availability zones in one region | ~1-2 ms |
| US East ↔ US West | ~60-70 ms |
| US East ↔ Western Europe | ~70-90 ms |
| US West ↔ East Asia | ~100-150 ms |
| Western Europe ↔ Australia | ~250-300 ms |
No engineering removes these numbers. A protocol that needs a cross-region round trip per write (synchronous replication, a consensus commit, a distributed lock) pays them on every write. That's the central tension of multi-region design: you can't have strong consistency across regions without paying cross-region latency on writes. Every pattern below is a different answer to who pays it, and when.
When your interviewer says "multi-region," write the RTT on the whiteboard. "US to Europe is about 80 ms round trip, so if every write needs a cross-region acknowledgment, our p50 write latency is at least 80 ms." Almost every decision after that follows from this one number.
RPO and RTO
Two terms frame every disaster recovery discussion:
- RPO (Recovery Point Objective): how much data you can afford to lose, measured in time. RPO of 0 means no acknowledged write may be lost. RPO of 5 minutes means losing the last 5 minutes of writes is acceptable.
- RTO (Recovery Time Objective): how long you can be down. RTO of 1 hour means the system must be serving again within an hour of the region failing.
RPO is determined by replication: asynchronous cross-region replication gives an RPO equal to the replication lag (typically seconds, more under load); synchronous replication gives RPO 0 at the cost of write latency. RTO is determined by how much is already running in the other region and how automated the failover is.