How it works
A geo-aware DNS service, often called GeoDNS, answers a lookup with the address of a nearby data center. Amazon Route 53, for example, supports latency-based and failover routing. During a major outage, traffic must move to a healthy region that has enough capacity to receive it. DNS moves slowly: with a 60-second TTL, many clients switch within minutes, but some resolvers hold old answers for longer.
Capacity is the first trap. If two regions each run at 60% of their capacity, the survivor of a regional failure faces 120% and overloads. To absorb a full failover, each must normally stay below 50%, so you pay for about twice what a normal day needs.
Routing is only part of failover. If needed data exists only in the failed region, requests can still fail. Regions need an explicit data synchronization strategy. Cross-region replication is usually asynchronous, because waiting about 100 ms on each write is expensive. As an example, a lag of one second means a failover can lose about a second of confirmed writes. Letting both regions accept writes keeps each one writable, but two people can then change the same record, so conflicts need a rule.
Deployments must be tested in each location so the supposedly healthy region actually works. Netflix has publicly described evacuating traffic from an entire AWS region to prove the others can absorb it. Most products do not need this: running across availability zones, separate facilities within one region, handles common failures at far lower cost.
Two regions each run at 70% of capacity, and leadership wants the product to survive losing either one. What do you tell them?
The survivor would face 140% of its capacity and overload, so the routing plan alone is not enough. Add capacity until each region runs near 50%, or decide which features to shed during a failover. Then confirm the required data exists in both regions and rehearse the move.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Regional failover needs both traffic routing and usable data.
- Cross-region testing and consistent deployment are part of the design.