Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Reliability and Failure
Lesson 20 of 24

Multi-AZ versus multi-region

Survive the loss of a data centre or a whole region, and understand the latency and consistency costs of each.

20 min read

Zones and regions

A cloud region contains several availability zones: separate data centres with independent power, cooling and networking, typically a few kilometres apart and connected with round trips around 1 to 2 ms. Regions are hundreds or thousands of kilometres apart, with round trips of 30 to 150 ms or more. Zones fail independently often enough that every production system should span at least two; whole-region outages are rarer but do happen, usually through a shared control plane or a bad regional deploy.

Multi-AZ is the default

Because zones are close, synchronous replication between them is cheap: a database commit that waits for a standby in another zone adds only a millisecond or two. Run stateless instances in at least two or three zones behind a zonal-redundant load balancer, and size the fleet so the surviving zones can carry full load: with three zones, each must handle 50% of peak, not 33%. Managed databases with multi-AZ failover give an RPO of zero and an RTO of a minute or two for zone loss.

Multi-region is a different problem

Across regions, synchronous replication adds tens of milliseconds to every write, so most designs replicate asynchronously and accept a small RPO. Pick the model per data type rather than for the whole system.

  • Active-passive: one region takes writes, another holds a replica and takes over on disaster
  • Active-active reads: every region serves reads locally, writes go to a home region
  • Active-active writes: each region accepts writes for its users; needs data partitioned by region or conflict resolution

Hidden shared dependencies

Many multi-region designs fail because something is still global: a single DNS provider, one identity service, a config store in the primary region, or a deploy pipeline that pushes everywhere at once. Map the dependencies of the failover path itself. Route users with health-checked DNS or anycast, keep DNS TTLs short (30 to 60 seconds), and deploy one region at a time. Choose multi-region when the business case justifies roughly double the cost and complexity; for many products, solid multi-AZ plus tested backups is the right answer.

Key takeaways

  • Zones are milliseconds apart, so synchronous multi-AZ replication is cheap and standard
  • Size for zone loss: with three zones each must carry half of peak
  • Cross-region replication is usually asynchronous, accepting a small RPO
  • Multi-region fails through hidden global dependencies; map and remove them

Sign in to track lessons and earn badges.

RPO, RTO and disaster recoverySafe deploys: canaries, blue/green and feature flags

Coming up

Course: 0/24 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 9/10Design Live Video StreamingKeep millions of viewers watching through ingest failures, zone loss and launch spikes using redundancy, CDNs and staged rollouts.MAJORHardPRO
  • 10/10Design a Stock Exchange Matching EngineDesign a replicated, fenced sequencer and matching engine that fails over without losing or reordering a single order.MAJORHardPRO
  • All 10 challenges →