Scalability and Performance · Spreading the load
Load balancing
A load balancer spreads incoming requests across many servers, stops sending work to broken ones, and lets you add capacity without downtime.
- Time25 min
- LevelDeveloper
- Experiments3 live
- Check6 questions






Browser gets the load balancer's address from DNS, never a server's.
Algorithm picks one server, for example the one with the fewest requests in progress.
Load balancer returns the response and updates server 3's count of active requests.
DNS or anycast sends each user to a nearby datacenter or region.
Server pool identical, stateless application servers, added and removed by auto-scaling.
Shared state databases and caches every server reads, so any server can answer any user.