Free preview

Global Server Load Balancing

Why this matters: before any load balancer picks a server, something has to pick a data center. That decision determines a user's baseline latency and is your first line of defense when an entire region goes dark.

Key takeaway

Load balancing operates at two distinct scales. Global server load balancing (GSLB) distributes traffic across geographic regions. Local load balancing distributes traffic within a specific data center to improve resource efficiency and server utilization. They solve different problems and you need both.

What GSLB does

GSLB intelligently forwards global traffic to the optimal data center, making decisions based on:

  • User location — send people to a region near them.
  • Server capacity — do not send traffic to a region that cannot absorb it.
  • Data center health — if a region suffers a power or network failure, reroute to an active location.

GSLB also enables automatic zonal failover, and can be deployed on-premises or consumed as load balancing as a service (LBaaS).

The control-plane feedback loop

This is the part that makes GSLB more than a static map, and it is worth being precise about.

In a typical setup, GSLB forwards requests to specific data centers. The local load-balancing layer in each data center maintains a control-plane connection back to the GSLB, reporting the health of both the load balancers and the server farm behind them. GSLB uses that monitoring data to drive traffic decisions according to regional configurations.

DNS as the primary GSLB mechanism

The Domain Name System is a primary mechanism for performing GSLB. As the DNS chapter established, a DNS query can return multiple IP addresses, and the system distributes load by reordering that list in its response — often visible by running nslookup repeatedly. Different users receive different primary servers, which effectively distributes requests across data centers. DNS commonly uses round robin to rotate the IP order.

Where DNS round robin falls short

Two limitations matter enough to design around:

LimitationCauseEffect
Uneven load distributionISPs with large user bases may cache a single IP addressAll of that ISP's users go to one server, creating imbalance
Lack of failure detectionRound robin does not account for server crashesIt keeps handing out a failed server's IP until the cached entry's TTL expires, hurting availability

Despite these, round robin is widely used. Providers mitigate it with short TTL values on cached entries to keep distribution effective and shorten the failure window.

Two ways to do global traffic management

So — can DNS be considered a GSLB? Yes, but typically via custom DNS infrastructure. There are two common approaches to global traffic management (GTM):

ApproachHow it worksStrength
GTM through ADCsApplication delivery controllers forward requests based on real-time data such as server health and data center capacityReacts to live conditions rather than a cached answer
GTM through DNSAuthoritative DNS servers respond based on the IP of the DNS resolver (usually near the user), directing traffic to the geographically or topologically nearest data center — or by policies like latency or availabilityWorks with every client on earth, no special software required

The DNS approach is typically achieved through managed DNS providers — AWS Route 53, Cloudflare — or custom infrastructure incorporating geolocation and health data.

Key takeaway

GSLB chooses the region; it is coarse, health-aware through a control-plane feedback loop, and largely implemented over DNS. Its weaknesses — cached answers, slow failure detection, resolver-based geography — are exactly what the local layer exists to compensate for.

Interview signal by level

LevelWhat a strong answer sounds like
L4"We use DNS to send users to different data centers."
L5Knows the limits: "DNS round robin distributes across regions, but it can't detect a crash quickly and one big ISP resolver skews the split."
Staff+Describes the loop and the fallback: "local LBs report health up a control plane so GSLB routes on live capacity, not a static map. And if the control plane partitions I'd stay statically stable on the last good config rather than treat silence as failure."

Next: the layer that fixes what DNS cannot.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue