21. What does a load balancer do?
EasySystem design
Technical
Show model answer
It spreads incoming requests across healthy servers using strategies such as round robin, least connections or hashing, and removes unhealthy servers based on health checks.
It can also terminate TLS, provide sticky sessions, and work at layer 4 (TCP) or layer 7 (HTTP routing by path or header).