1The Crowd
2The Morning
3The Rush
4Floor Notes
5The Method
6New Cases
Chapter 1 · The Crowd

🏦 Who Goes Where?

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 πŸ‘‡

Chapter 2 · The Bank Morning

Monday, 9:00 AM

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.

Chapter 3 · The Rush

Run the Bank Floor

Stage 1 of 3 · Only Counter 1 is open
🏦
THE STORY
⏳ Waiting: 0
βœ… Served: 0
Entrance
πŸšͺ
Exit
🚢
πŸŽ‰

The bank is calm again!

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.

0s
Longest wait
Stage 1 · one counter
0s
Longest wait
Stage 2 · with the manager
0s
Longest wait
Stage 3 · different capacities
0
Customers
served
Chapter 4 · Floor Notes

What did you notice?

Sit with these for a moment, there's no single correct wording, just think them through in your own words.

1 · One Busy CounterAt first, every customer had to use Counter 1. What made the line grow? Was the counter itself the problem, or was the work not being shared?
2 · A Better Way to Share the WorkWhen more counters became available, the manager could send customers to different places. How did this help the bank, and what do you think would happen if customers still crowded around just one counter?
3 · Choosing Where to GoWhat clues did the manager use to choose a counter? How might the decision change if the manager sent customers to counters in a fixed order without checking the queues?
4 · Not Every Counter Is the SameSome counters could serve more customers at once than others. How should the manager account for this difference when sharing the work?
5 · If Nobody Is CoordinatingImagine the manager steps away and customers choose counters on their own. What problems might appear? What information would help someone keep the queues moving fairly?
Chapter 5 · The Method

What the manager was really doing

Here's the strategy you watched all morning, with a name and a shape.

🏦

You Discovered: Load Balancing!

Stages 1 & 2 · One counter, then many

Spreading the work

Bank storyComputer system
CustomersRequests (from users)
Service countersServers
The waiting linePending requests
How many a counter serves at onceServer capacity
The floor managerLoad balancer

That's exactly what you saw in the first two stages:

  • With one open counter, every request piles onto a single server while the others sit idle.
  • With a manager at the door, each new request goes to the server that is the least busy right now.
  • When all servers are equally capable, the least busy one is the quickest way to get an answer.

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.

Stage 3 · Different capacities

Weighted sharing

In the third stage, the counters were no longer the same:

  • Splitting the work equally overloads the small server while the big one has plenty of room.
  • A smarter balancer compares each server's current work against its capacity, then sends the request where there's the most room.
  • The result: bigger servers take on more, and every server stays equally comfortable.

This is called weighted load balancing: each server gets a share that matches what it can handle.

βš–οΈ Two situations, two decisions

🟰 Equal servers (Stage 2)

  • Every server can handle the same amount.
  • Send each request to the server with the fewest requests, or simply take turns (round robin).
  • Fair shares are equal shares.

βš–οΈ Different capacities (Stage 3)

  • Servers can handle different amounts.
  • Compare each server's current work against its capacity before choosing.
  • Fair shares match capacity.

Real load balancers also notice when a server stops responding and quietly stop sending it new work.

πŸ”‘ Key Learnings

βš–οΈ
Load Balancing

Incoming work is spread across available servers so that no single server is overloaded while others sit idle.

πŸ§‘β€πŸ’Ό
The Load Balancer

A single entry point that decides, for every request, which server should handle it.

πŸ“
Capacity Matters

Equal doesn't always mean balanced. Weigh each server's current work against what it can handle.

🌍
Where You'll See It

Busy websites, cloud services, streaming platforms, and online stores all rely on load balancers to stay fast and reliable.

Chapter 6 · New Cases

Put the idea to the test

New situations to think through using what you just discovered.

1 · Hospital RushSeveral registration desks are open at a hospital, but most patients are joining the same queue while other desks are quiet. What could the hospital change to reduce the waiting time? What information should guide each patient's choice?
2 · Pick the Shorter QueueAt an airport, Desk A has 8 people waiting and Desk B has 3. Both desks process passengers at about the same speed. A new passenger arrives. Which desk would you recommend, and what might change your decision?
3 · Share Work by CapacityA delivery hub has two teams. Team A can deliver 10 orders per hour and Team B can deliver 30. If 20 orders arrive in an hour, suggest a reasonable split between the teams. Explain how their different capacities affect your decision.
4 · Is an Equal Split Always Fair?A school assigns 30 students to each teacher, even though one teacher is handling a simple revision activity and another is supporting students who need extra help. Is an equal split necessarily the best arrangement? What else should the school consider?
5 · One Service Point ClosesDuring a busy railway ticket rush, one booking counter suddenly closes. How should staff direct new passengers? What should they do about the people already waiting at the closed counter?
6 · Design a Better SystemChoose a setting such as a food delivery service, a clinic, a supermarket, or a college help desk. Propose a simple rule for assigning incoming work to available helpers. Explain what the rule should do when one helper is busy, has greater capacity, or becomes unavailable.
🏠 Back to CSE Concept Laboratory