Codele / System design
Load balancers
With many servers, who decides which one answers each visitor? A load balancer stands at the door like a host and deals requests out. Choose how many arrive and which server breaks.
- A load balancer sits in front of many servers and sends each request to one of them.
- Round robin takes turns in order, like dealing cards, so each server gets about the same.
- A health check is a regular “are you alive?” message. A server that stops answering is skipped.
- Visitors only talk to the balancer, so they rarely notice that a server went down.
- When the server is repaired and answers again, it rejoins the list.
Loading the playable lesson…