System Design
8. Load Balancing and ScalabilityAnimated
Active-Active Load Balancing
Several balancers share traffic at once.
The idea
All nodes serve traffic. If one fails the others absorb its load.
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
Both nodes serve traffic at all times.
- step:
- 1/4
- at:
- Clients
1/11
The green dot is a request moving through the system.
Step by step
- 1All nodes handle traffic
- 2Health is monitored
- 3On failure traffic redistributes
- 4Nodes need spare capacity
Where it is used
Higher utilisation and resilience.
Watch out for
Each node must handle the extra load after a failure.