What Is GSLB (Global Server Load Balancing)?

Also called: Global load balancing

Related problems: Our application goes down when one data center or cloud region fails; Users in other countries complain our application is slow; Running active-active across two sites or two clouds; Failover to our disaster recovery site is manual and slow

Global server load balancing (GSLB) is a way of distributing users across two or more data centers, cloud regions or providers that all run the same application. When a user tries to connect, GSLB decides which location should serve them based on rules such as which sites are healthy, which is closest or fastest for that user, and how busy each one is. If one location fails, GSLB stops sending users there. It is a common building block for applications that need to stay available through a site outage or serve users in many regions.

At a glance

  • Operates across sites or regions, choosing where a user goes before a local load balancer chooses a server.
  • Most commonly works through the Domain Name System (DNS), answering each lookup with the address of the best location.
  • Uses health checks so traffic moves away from a failed or degraded site.
  • Routing policies can be based on geography, measured performance, weighting or failover priority.
  • Available as appliance features, software, and managed DNS or traffic management services.

What problem it solves

An application that runs in a single data center or cloud region is exposed to a single point of failure: a power event, network outage or regional cloud incident takes it offline for everyone. Users far from that location also experience higher latency. Running the application in more than one place solves part of the problem, but users still need a way to reach the right copy and to be moved when one copy fails.

GSLB provides that steering. It keeps users pointed at healthy locations, can send them to the nearest or fastest site, and makes active-active or active-standby designs work without users changing anything. For disaster recovery, it can turn a manual DNS change during a crisis into an automated, tested policy.

How it works

DNS-based steering. The most common approach. The GSLB system acts as the authoritative DNS server for the application’s name. When a user’s resolver asks for the address, GSLB returns the address of the location chosen by its policy. A short time-to-live (TTL) on the answer encourages clients to check back often, so changes take effect sooner, though caching behavior varies.

Health monitoring. GSLB continuously checks each location, from simple reachability tests to checks that the application itself responds correctly. A location that fails its checks is removed from the answers until it recovers.

Routing policies. Common policies include geographic (send users to the site in their region, which can also support data residency rules), performance-based (send users to the site with the lowest measured latency), weighted (split traffic by percentage, for example during a migration) and failover (use the primary site unless it is down).

Anycast and proxy approaches. Some providers announce the same IP address from many locations, so the internet’s routing delivers each user to a nearby point, which then forwards traffic to a healthy origin. This can react faster than DNS because it does not depend on clients refreshing cached answers.

Behind GSLB. Each location still needs its own load balancing, capacity to absorb traffic moved from a failed site, and a way to keep application data synchronized. GSLB only handles the steering.

For multi-site and multi-provider designs, see our multi-cloud and cloud content delivery network pages.

When it matters for buyers

  • Designing for regional outages. If an application must survive the loss of a data center or cloud region, GSLB is often how users are moved.
  • Going multi-cloud. Steering across providers usually requires a GSLB service that isn’t tied to one of them.
  • Serving users in several regions. Directing users to a nearby site can improve response times and help keep data in-region.
  • Migrations. Weighted routing lets you shift traffic gradually from an old platform to a new one and roll back quickly.
  • High availability claims. Ask how failover is actually triggered and how long it takes in practice.

Questions to ask vendors

  • Is steering DNS-based, anycast-based or proxy-based, and what failover time should we expect in practice?
  • What health checks are available, and can they test the application rather than just the server?
  • Which routing policies are supported: geographic, latency, weighted, failover?
  • Can it steer to endpoints in any cloud or data center, or only within your platform?
  • How is it priced: per DNS query, per health check, per endpoint or a flat fee?
  • What is the SLA for the GSLB service itself, and how is it protected from DDoS attacks?
  • How do we test failover without disrupting users?

How it differs from a load balancer

A load balancer sits in front of a group of servers in one location and spreads requests among them, usually by passing traffic through itself. GSLB works a level higher, choosing which location a user goes to, and in its DNS-based form it never touches the application traffic at all; it only answers the question “where should this user connect?” That means DNS-based GSLB is limited by DNS caching in a way a local load balancer is not. The two are complementary: GSLB picks the site or region, and a load balancer there picks the server. A content delivery network is different again, serving cached content from its own edge rather than steering users to your sites.

Frequently Asked Questions

What is the difference between GSLB and a load balancer?
A traditional load balancer spreads traffic across servers within one site or region. GSLB decides which site or region a user should go to in the first place. Many deployments use both: GSLB picks the location, and a local load balancer there picks the server.
How fast does GSLB fail over?
It depends on the method. DNS-based GSLB relies on clients and resolvers fetching a new answer, so failover is limited by health-check intervals and DNS caching, and some resolvers and applications hold old answers longer than the time-to-live (TTL) allows. Anycast-based approaches can react faster. Test failover with real clients rather than relying on settings alone.
Does GSLB replicate our data between sites?
No. GSLB directs users; it does not move or copy data. The application and its data must already be running and in sync at each location, which is usually the harder part of a multi-site design.
Can GSLB work across different cloud providers?
Yes, if the GSLB service sits outside any single provider, such as a managed DNS or traffic management service or your own appliances. A GSLB feature built into one cloud provider may be limited to that provider's regions or may support external endpoints, so check.
Is GSLB the same as a CDN?
No. A content delivery network caches and serves content from its own edge servers. GSLB sends users to your own sites or regions. Many CDN and edge platforms include traffic steering features, so the two are sometimes bought together.

You Don’t Need Another Sales Call. You Need an Answer.

30 minutes. No pitch. Just an honest conversation about where you are, what you need, and whether working together makes sense.

We use your details to set up and prepare for the call, and send the newsletter only if you ask for it. Privacy policy.