How does a load balancer work, and which balancing algorithms are there?
Short answer
A load balancer sits in front of identical servers and sends each request to a healthy one using an algorithm. It enables horizontal scaling and raises availability: dead machines are dropped.
3 points to say:
- Health checks remove broken servers.
- Uneven request lengths: least connections.
- Stateless apps need no sticky sessions.
Keep reading the deep dive
Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.