Scalability and Performance · Spreading the load
Load-balancing algorithms in depth
Round robin assumes every request costs the same. Real traffic does not, so balancers count work in flight, sample two servers or hash keys, and each choice has a failure mode.
- Time25 min
- LevelDeveloper
- Experiments1 live
- Check6 questions







Request arrives the balancer reads the method, path and headers.
Filter servers failing health checks are left out.
Forward the request goes there, and its in-flight count rises.
Finish when the response is sent, the count falls again.