Send users to the best region of the world, and move away from one that fails.
Global load balancing (also called GSLB, global server load balancing) sends each user to the best region of the world, not just the best server inside one data centre.
A normal load balancer lives in one data centre. It shares requests between the servers there. But what if your users are in New York, London and Sydney? Sending everyone to one place makes far-away users slow, and one big outage (a power cut, a bad deploy, a cloud region problem) takes everyone down.
So big systems run in several regions. A global load balancer sits in front of them all and answers one question for every user: "Which region should this user go to?"
| Method | How it works | Good and bad |
|---|---|---|
| DNS based (GeoDNS, latency routing) | The DNS server returns the IP of the best region for the user's resolver | Simple and cheap. Answers are cached, so failover waits for the TTL. Sees the resolver's location, not always the user's. |
| Anycast | Every region announces the same IP. The internet routes each user to the nearest one | Fast failover, no DNS cache. Less control: routing follows network paths, not your rules. See Anycast Routing. |
| Global proxy / edge | A network of edge proxies accepts the connection near the user and forwards it to a chosen region | Fine control per request, fast failover, can add security and caching. A provider or a large setup is needed. |
| Client-side | The app itself holds a list of regions and picks one, with retries | Full control, works for mobile apps and SDKs. Every client must be updated to change the rules. |
| Policy | Idea | Use it for |
|---|---|---|
| Geographic | A table maps country or area to a region | Data rules, simple setups. Can be wrong when the map is not the network. |
| Latency based | Pick the region with the lowest measured delay | Fastest experience for users. |
| Weighted | Send fixed percentages to each region | Gradual roll-outs, cost balancing. |
| Failover (primary and backup) | Use the primary until it is unhealthy, then the backup | Disaster recovery. |
| Capacity aware | Shift traffic away from regions near their limit | Peak traffic, uneven demand. |
A teaching model with made-up latencies and timings. The survivors' load assumes three regions with equal traffic, so one failure raises each survivor by half (60% becomes 90%). Real systems differ.
| Term | Meaning in easy words |
|---|---|
| GSLB | Global server load balancing: choosing among data centres or regions |
| Region | A separate geographic location with its own data centres |
| GeoDNS | DNS that answers differently based on where the asker seems to be |
| Latency-based routing | Choosing the region with the lowest measured round-trip time |
| TTL | How long a DNS answer may be cached before asking again |
| Anycast | The same IP announced from many places, with the network choosing the nearest |
| Edge location / PoP | A small site close to users that terminates connections or caches content |
| Regional failover | Moving traffic from a failed region to a healthy one |
| Active-active | Several regions serve users at the same time |
| Active-passive | One region serves users and another waits as a standby |
| Headroom | Spare capacity kept so other regions can absorb a failed region's traffic |
| Choice | We gain | We lose |
|---|---|---|
| Active-active regions | Best latency, no idle hardware, quick failover | Hard data consistency, higher complexity |
| Active-passive regions | Simpler data story | Paid-for idle capacity, slower recovery, far users stay slow |
| Short DNS TTL | Faster failover | More DNS traffic, extra lookup delay, some resolvers ignore it |
| Long DNS TTL | Fewer lookups, cheaper | Users stay on a dead region longer |
| Anycast / edge proxy | Fast failover and finer control | Cost, vendor dependence, less transparent routing |
| More spare capacity | Safe failovers | Higher cost every day |