Imagine a place where lots of people show up at once, and there are several spots ready to help them: a bank with a row of service counters, an airport with check-in desks, a supermarket with checkout lanes.
If everyone walks to the same spot, that line grows and grows while the other spots sit empty. Everyone waits longer than they need to, even though there is plenty of help available.
So who decides where each person should go? And what should that decision be based on?
Let's find out by running the floor at a busy bank π
The doors of the bank just opened, and customers are streaming in.
There are four service counters in the hall, but right now only Counter 1 is open.
Every customer takes about 4 to 5 seconds to be served.
You'll watch the morning unfold in three short stages.
The floor manager kept the lines short by looking at where customers were waiting, and by remembering that a bigger counter can take on more people. Nobody was stuck in a long line while another counter sat idle.
Sit with these for a moment, there's no single correct wording, just think them through in your own words.
Here's the strategy you watched all morning, with a name and a shape.
| Bank story | Computer system |
|---|---|
| Customers | Requests (from users) |
| Service counters | Servers |
| The waiting line | Pending requests |
| How many a counter serves at once | Server capacity |
| The floor manager | Load balancer |
That's exactly what you saw in the first two stages:
That job has a name: Load Balancing. It means spreading incoming work across the available resources so that none is overloaded while others sit idle.
In the third stage, the counters were no longer the same:
This is called weighted load balancing: each server gets a share that matches what it can handle.
Real load balancers also notice when a server stops responding and quietly stop sending it new work.
Incoming work is spread across available servers so that no single server is overloaded while others sit idle.
A single entry point that decides, for every request, which server should handle it.
Equal doesn't always mean balanced. Weigh each server's current work against what it can handle.
Busy websites, cloud services, streaming platforms, and online stores all rely on load balancers to stay fast and reliable.
New situations to think through using what you just discovered.