Regions, availability zones and failure domains
Clouds are built from nested failure domains: zones inside regions. Spread across zones, size for losing one, and find the shared dependency that undoes it.
Cloud service models: IaaS, PaaS, SaaS and serverlessReverse proxies and load balancers with nginx
Regions, availability zones and failure domains
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- A failure domain is the set of things that break together. Racks, zones and regions are nested failure domains, and resilience means not putting every copy in one of them.
- An availability zone is one or more data centers with their own power, cooling and network, close enough to its sister zones for low-latency synchronous replication.
- A region is a geographic area holding several zones. Regions are isolated from each other, so a multi-region design is the answer to a whole-region outage, at a much higher cost.
- Running in three zones only helps if you can lose one at peak. Each zone must carry its share of the load with one zone gone, so N zones need about N/(N-1) of peak capacity.
- A single shared dependency, such as one database instance or a regional control plane, caps your availability no matter how many zones the web tier spans.
The problem: everything fails, but not everything fails together
Hardware fails all the time at cloud scale. A disk dies, a top-of-rack switch reboots, a power feed trips. What matters is not whether things fail but which things fail together. Two servers on the same rack share a switch and a power strip. If the switch dies, both are gone, and having two of them bought you nothing.
That set of things that break together is a failure domain. Resilient design is mostly the habit of asking, for every copy you make, “what would take out this copy and the other one at the same moment?”
Zones and regions
The big clouds organize their data centers into nested failure domains.
An availability zone is one or more data centers with independent power, cooling and networking. Zones in the same area are kilometers apart, so a fire or flood in one should not reach another, but close enough that the network round trip between them is around a millisecond or two. That is short enough to replicate a database synchronously.
A region is a geographic area, like Frankfurt or Northern Virginia, containing several zones, usually three or more. Regions are run independently of each other on purpose. A software bug rolled out to one region’s control plane should not reach the next.
The names line up across providers. AWS and Azure call them regions and availability zones. Google Cloud calls them regions and zones. Azure also has “availability sets”, an older idea for spreading VMs across racks within one data center. AWS has a quirk worth knowing: zone names like us-east-1a are mapped to physical zones differently in each account, so when two accounts must line up, use the zone ID, such as use1-az1.
Zonal versus regional services
Services come in two kinds, and confusing them is a common way to build a single point of failure.
- Zonal: a VM, a block disk, a single database instance. It lives in one zone. If the zone goes, it goes. Spreading copies across zones is your job.
- Regional: object storage, managed queues, most serverless offerings. The provider already runs it across zones in the region, and you just use it.
A web tier of VMs in three zones, talking to one database instance in zone A, is a one-zone system with extra steps.
A worked example: the arithmetic of spreading
I wrote a short Python script for two questions. First, what does adding zones buy if each zone’s copy of the app is up 99.5% of the time and failures are independent? Second, what happens when everything still depends on one shared regional component at 99.95%? Then, how much capacity do you need to survive losing a zone at a peak of 1,200 requests a second?
$ python3 az.py
1 zone(s), independent failures: 99.500000%
2 zone(s), independent failures: 99.997500%
3 zone(s), independent failures: 99.999988%
3 zones behind one regional dependency at 99.95%: 99.9500%
2 zones: each must carry 1200 rps; total provisioned 2400 (200% of peak)
3 zones: each must carry 600 rps; total provisioned 1800 (150% of peak)
4 zones: each must carry 400 rps; total provisioned 1600 (133% of peak)
Three lessons are in those numbers.
- The independence assumption does the heavy lifting. Eight nines from three zones only holds if zones fail independently. Real outages are often correlated: a bad deploy pushed to every zone, a shared DNS or identity service failing. Treat these figures as an upper bound.
- The weakest shared dependency sets the ceiling. Put a 99.95% regional dependency behind three zones and you get 99.95%. The availability lesson in system design covers this series-versus-parallel maths in general.
- Spreading costs capacity. With two zones, each must carry the whole peak alone, so you pay for 200%. Three zones need 150%. This is why three is the common default.
Multi-region is a different decision
A whole region failing is rare but has happened. Surviving it means a second region with its own copy of the data, replicated asynchronously because the distance is too large for synchronous writes. That means some data loss on failover, a failover process you must rehearse, and roughly double the bill. Some teams need it for regulators or contracts. Many are better served by doing multi-zone well and having tested backups in another region. The system-design lesson on availability patterns and failover covers active-passive and active-active designs.
Region choice also involves latency to your users, which services are available there (new services often launch in a few regions first), price, which varies by region, and where the law says the data may live.
About the video
“Building Resilient Cloud Services (Part 4): Why multi–Availability Zone applications?” is from the Amazon Web Services channel, presented by AWS Principal Technologist Rob Charlton, published March 2025, 7 minutes 51 seconds. Its description lists multi-AZ principles, how load balancing gives failover, the difference between services where you place resources across zones and regional services like S3, and the nested model of global, region, zone and service. It is AWS-specific, so map the names with the table above. English is judged from the title, description and channel. John Savill’s Azure video, linked below, has a chapter on what zones are not and on zone mapping per subscription. in28minutes compares regions and zones across all three clouds.
Where this fits
You know where things run and how to spread them. Next come the building blocks you actually place in those zones: compute, storage and networking.
Check yourself
What is the difference between a zonal and a regional service?
A zonal resource, like a VM or a disk, lives in one zone and dies with it, so you place copies yourself. A regional service, like object storage, is spread across zones by the provider.
You run 3 web servers, one per zone, at 70% CPU each at peak. One zone fails. What happens?
The two survivors must absorb the third's traffic, going to about 105% each, so they overload. Each zone needs headroom to carry 1.5 times its normal peak share.
Why is zone us-east-1a in one AWS account not necessarily the same data center as us-east-1a in another?
AWS maps zone names to physical zones per account to spread load. Use the zone ID, such as use1-az1, when you need to line zones up across accounts.
When is multi-region worth it?
When the cost of a whole-region outage, or a legal need to keep data in two places, outweighs roughly doubling the infrastructure plus the work of cross-region data replication and failover.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.