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.
- 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
- 1Resolve the user location
- 2Pick the nearest region
- 3Route there
- 4Fail over if unhealthy
Where it is used
Global apps.
Watch out for
Data replication across regions.