System Design
8. Load Balancing and ScalabilityAnimated
Global Server Load Balancing
Balancing across data centres worldwide.
The idea
GSLB combines health, latency and location to choose a site.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- 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
- 1Check site health
- 2Measure latency
- 3Choose the best site
- 4Return its address
Where it is used
Multi-region services.
Watch out for
DNS caching delays changes.