Routing and cutover
When disaster does strike, we need traffic to be routed to the backup datacenter. The Service-Level Reliability pattern of having a load-balancer and multiple instances behind it with health checks will not work here. A more scalable option is to use the DNS-based failover. As a quick recap, DNS maps a URL to a VIP (for a load-balancer) through its records. It is possible, and normal, to have multiple VIPs against a URL, and typically strategies such as round-robin routing are used; the DNS name server will hand out a different VIP each time for a resolution request. This can be augmented so that the DNS service monitors the health of each datacenter VIP and, if the instance is deemed unhealthy, remove it from the set ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access