Explain like I'm five · Security

What is a Load Balancer?

Load balancers, told as a story about the usher in front of the counters.

counter 1as the town grows, one clerk can't keep up

One counter, one long line.As the town grows, one counter clerk can't keep up.

counter 1counter 2counter 3emptyemptynobody knows which counter is free

Add counters, and people still crowd one line.Nobody knows which counter is free.

counter 1counter 2counter 3counter 1 ●●counter 2 ●counter 3 ○the usherthis way, pleasespreads people to free counters; the town needn't know how many there are

A load balancer is the queue usher.'This way, please.' It spreads people to free counters — and the town never needs to know how many there are.

Spreadingin turn, or to the shortest line
Open-counter checkknocks on every door each minute
Same counter againback to the clerk you had
More countersbusy? open another
counter 1closedcounter 3the usher never sends anyone to a closed counter

One counter closes and nobody notices.The usher never sends anyone to a closed counter. The others cover while it's fixed.

the usher collapses and the line stopsso there are two usherscounter 3I told counter 1 all this already?different ledgers, and counters don't remember youshare one ledger, or send you back to the same counter

If the usher collapses, everything stops.So there are two ushers. And if each counter keeps its own ledger, nobody remembers what you said — so they share one ledger, or send you back to the same counter.

In one breath

A load balancer = the usher who sends people to whichever counter is free, skips closed ones, and never lets the town see how many counters there are.

One of the receptionist's (reverse proxy's) jobs. Sorting by the envelope alone is L4; reading the note first is L7. nginx, HAProxy, AWS ALB/NLB.

When grown-ups say it

Round robin
One each, in turn. 1, 2, 3, 1, 2, 3… the simplest way to spread.
Least connections
To the shortest line. Whichever counter has the fewest people right now.
Health check
Knocking on the counter door. No answer, no customers sent.
Sticky session
Back to the same counter. The fix when each counter keeps its own ledger.
Autoscaling
Opening more counters. Long lines open counters; quiet hours close them.
L4 · L7
Envelope only vs. reading the note. L4 sorts by address alone; L7 reads the note first. → the receptionist story
Single point of failure
One usher. Collapses, and everything stops — hence two.
Shared session store
The ledger all counters share. Whichever counter you reach, it remembers you.
Next story
A Copy in Every Town →
Want another term as a picture book? Request →