Skip to content
StackDecode
System Design
8. Load Balancing and ScalabilityAnimated

Geographic Load Balancing

Routing users to the nearest region.

The idea

DNS or anycast sends each user to the closest healthy data centre.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Users AsiaUsers EuropeGlobal load bal…Region AsiaRegion Europe
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A global balancer picks a region using latency, geography and health.

step:
1/4
at:
Users Asia
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Resolve the user location
  2. 2Pick the nearest region
  3. 3Route there
  4. 4Fail over if unhealthy

Where it is used

Global apps.

Watch out for

Data replication across regions.

Related