Design Multi-Region Architecture
Design cloud systems that remain available and performant across geographic failures.
Why This Is Best Practice
Adopted by: Netflix, Amazon, Google, Stripe, financial institutions under DORA/BCBS239 regulation
Impact: Achieve 99.99%+ availability; reduce latency by 40-60% for globally distributed users; meet RTO < 15 min targets
Why best: Single-region deployments create single points of failure; multi-region distributes blast radius and puts compute near users
Sources: AWS Well-Architected Reliability Pillar (2023); Google Cloud Architecture Framework; NIST SP 800-34 Rev.1
Steps
Define availability targets — Set RTO/RPO per service tier (tier 1: RTO < 15 min, RPO < 1 min; tier 2: RTO < 4 hr, RPO < 1 hr). These drive region count and replication strategy.
Select regions — Choose primary, secondary, and optional tertiary regions based on: user latency (<100 ms rule), data residency law (GDPR, PDPA), cloud provider availability, and inter-region latency (prefer <50 ms pairs).
Choose a multi-region pattern — Active-active: traffic served from all regions simultaneously (highest complexity, lowest RTO). Active-passive: standby region takes over on failure (simpler, higher RTO). Pilot-light: minimal standby scaled on failover.
Design data replication — Synchronous replication for zero RPO (adds latency); asynchronous for low-latency writes with non-zero RPO. Use CRDTs or last-write-wins for conflict resolution. Partition databases by geography where data residency requires it.
Implement global load balancing — Route traffic via anycast DNS (Route 53, Cloud DNS) or global load balancers with health checks. Use latency-based or geolocation routing. Set failover thresholds and TTLs (<30 s).
Handle consistency trade-offs — Apply CAP theorem: during partition, choose availability or consistency per service. Use eventual consistency for non-critical data; strong consistency only where required (financial transactions).
Design stateless compute — Ensure application servers carry no local state. Externalize sessions to distributed caches (Redis Cluster, Memorystore). Store ephemeral files in object storage, not local disk.
Implement observability per region — Deploy independent monitoring stacks per region. Aggregate metrics globally but alert regionally. Measure inter-region replication lag as a key metric.
Test failover regularly — Run game days quarterly; automate chaos experiments (inject region failure in staging). Measure actual RTO vs target; update runbooks.
Document runbooks — Write step-by-step regional failover procedures. Assign ownership. Test runbooks annually and after every architecture change.
Rules
- Never share a single database across regions without replication — it becomes your single point of failure.
- Always test failover before you need it; untested failover plans fail when it counts.
- Match region count to RTO/RPO requirements, not aspirations — each additional region multiplies operational complexity.
- Treat inter-region bandwidth costs as a first-class architectural concern.
Common Mistakes
- Assuming active-active is always better — it requires conflict resolution logic; active-passive is often sufficient and far simpler.
- Ignoring replication lag — asynchronous replication means data loss on failover; measure and communicate RPO honestly.
- Forgetting third-party dependencies — DNS providers, CDNs, and SaaS tools may be single-region; audit all external dependencies.
- Underestimating data residency complexity — GDPR and similar laws may prohibit cross-border replication; consult legal before designing replication topology.
When NOT to Use
- Internal tools or low-criticality workloads where downtime cost is less than multi-region overhead
- Early-stage products where simplicity and iteration speed outweigh availability guarantees
- Applications with regulatory requirements that prohibit data leaving a single jurisdiction
1---2name: design-multi-region-architecture3description: Use when designing systems that must survive regional outages, minimize global latency, or meet geographic data residency requirements4source: AWS Well-Architected Framework (Reliability Pillar); Google Cloud Architecture Framework; NIST SP 800-34 contingency planning5tags: [cloud, reliability, architecture, disaster-recovery]6verified: true7metadata:8 source: https://skillmd.com/skills/jeffreytse/design-multi-region-architecture9---1011# Design Multi-Region Architecture1213Design cloud systems that remain available and performant across geographic failures.1415## Why This Is Best Practice1617**Adopted by:** Netflix, Amazon, Google, Stripe, financial institutions under DORA/BCBS239 regulation18**Impact:** Achieve 99.99%+ availability; reduce latency by 40-60% for globally distributed users; meet RTO < 15 min targets19**Why best:** Single-region deployments create single points of failure; multi-region distributes blast radius and puts compute near users2021Sources: AWS Well-Architected Reliability Pillar (2023); Google Cloud Architecture Framework; NIST SP 800-34 Rev.12223## Steps24251. **Define availability targets** — Set RTO/RPO per service tier (tier 1: RTO < 15 min, RPO < 1 min; tier 2: RTO < 4 hr, RPO < 1 hr). These drive region count and replication strategy.26272. **Select regions** — Choose primary, secondary, and optional tertiary regions based on: user latency (<100 ms rule), data residency law (GDPR, PDPA), cloud provider availability, and inter-region latency (prefer <50 ms pairs).28293. **Choose a multi-region pattern** — Active-active: traffic served from all regions simultaneously (highest complexity, lowest RTO). Active-passive: standby region takes over on failure (simpler, higher RTO). Pilot-light: minimal standby scaled on failover.30314. **Design data replication** — Synchronous replication for zero RPO (adds latency); asynchronous for low-latency writes with non-zero RPO. Use CRDTs or last-write-wins for conflict resolution. Partition databases by geography where data residency requires it.32335. **Implement global load balancing** — Route traffic via anycast DNS (Route 53, Cloud DNS) or global load balancers with health checks. Use latency-based or geolocation routing. Set failover thresholds and TTLs (<30 s).34356. **Handle consistency trade-offs** — Apply CAP theorem: during partition, choose availability or consistency per service. Use eventual consistency for non-critical data; strong consistency only where required (financial transactions).36377. **Design stateless compute** — Ensure application servers carry no local state. Externalize sessions to distributed caches (Redis Cluster, Memorystore). Store ephemeral files in object storage, not local disk.38398. **Implement observability per region** — Deploy independent monitoring stacks per region. Aggregate metrics globally but alert regionally. Measure inter-region replication lag as a key metric.40419. **Test failover regularly** — Run game days quarterly; automate chaos experiments (inject region failure in staging). Measure actual RTO vs target; update runbooks.424310. **Document runbooks** — Write step-by-step regional failover procedures. Assign ownership. Test runbooks annually and after every architecture change.4445## Rules4647- Never share a single database across regions without replication — it becomes your single point of failure.48- Always test failover before you need it; untested failover plans fail when it counts.49- Match region count to RTO/RPO requirements, not aspirations — each additional region multiplies operational complexity.50- Treat inter-region bandwidth costs as a first-class architectural concern.5152## Common Mistakes5354- **Assuming active-active is always better** — it requires conflict resolution logic; active-passive is often sufficient and far simpler.55- **Ignoring replication lag** — asynchronous replication means data loss on failover; measure and communicate RPO honestly.56- **Forgetting third-party dependencies** — DNS providers, CDNs, and SaaS tools may be single-region; audit all external dependencies.57- **Underestimating data residency complexity** — GDPR and similar laws may prohibit cross-border replication; consult legal before designing replication topology.5859## When NOT to Use6061- Internal tools or low-criticality workloads where downtime cost is less than multi-region overhead62- Early-stage products where simplicity and iteration speed outweigh availability guarantees63- Applications with regulatory requirements that prohibit data leaving a single jurisdiction