How it works · 32 of 38 Core
How does failover work during a cloud outage?
Switching to the spare, for real
Outages & failover: Failover moves traffic to a standby copy when the primary fails; it only works if the checker that spots the failure and the switch that moves traffic live outside the thing they protect, the data is already at the standby, and the switch has been tested by actually switching.
Loading the animation…
Say it like this Failover moves traffic to a standby copy when the primary fails, and it only works if the thing that detects the failure and flips the switch lives outside what it protects and has been tested by actually switching.
Under the hood — for builders
- Real case: AWS us-east-1 (October 2025)
- A race condition in DynamoDB's DNS automation left its regional endpoint with an empty DNS record. Services built on it failed for hours:
- The lesson AWS writes down
- Recover through the data plane (what serves traffic), never the control plane (what changes settings).
- For DNS failover, that means
- "Route 53 routing policies use the control plane, so do not rely on it for recovery"; health checks are data plane.
- Worked example: the scene's 40 seconds
- With a check every 10 s and three misses to fail over, most of the wait is detection:
- Facebook, 4 October 2021
- A backbone command cut its data centres; DNS servers then withdrew their routes, taking the repair tools offline too.
- Warm vs cold standby
- Warm: already running, takes traffic at once. Cold: started on demand, adds minutes.
- Watch out
- Replication lag is your data loss (RPO, B5). Fail back by hand, and check health from more than one place.
- Sources
- AWS, DynamoDB us-east-1 disruption summary (Oct 2025) · AWS Well-Architected REL11-BP04 · Meta Engineering, "More details about the October 4 outage" (5 Oct 2021) (read November 2026).
What happens in the outages & failover animation, step by step?
- Failover means switching to a standby copy when the main one fails. Users' traffic goes to the primary region in Mumbai; a checker asks it "are you up?" every 10 seconds, round and round.
- The primary goes dark. Three missed answers in a row and the checker pulls its lever: traffic moves to the standby in Hyderabad. Users see about 40 seconds of errors, not hours.
- Your turn: where should the checker and its lever live? Inside the Mumbai region, right next to what it watches, or outside both regions? The same outage plays again.
- It happens to the biggest. In October 2021 a change to Facebook's network took its apps offline for about six hours. The outage also cut the remote access and tools engineers needed, so they had to go to the data centres in person.
- A failover that has never been tried is a hope. Teams run drills: switch the primary off on purpose on a calm day, time the switch, and fix what broke, before a real outage tests it.
- Pulling that lever moves every customer at once, and so can a mistake or an attacker. Which people and which programs may touch production, and with what? Next: identity and least privilege.
What everyday example explains outages & failover?
A hospital's backup generator. A sensor notices the mains power is gone and a switch starts the generator within seconds (the checker and the lever); if that switch runs on mains power it dies with it (the checker inside the failed region); and hospitals test the generator on a schedule, because the first real blackout is the worst time to find it won't start (the drill).
Why should a team care about outages & failover?
When you design for an outage, decide where the standby runs and how warm it is, where the checker and switch live (never only in the region they protect), how much data the standby may be behind, and how often you rehearse the switch for real.