System Design Patterns: From Fundamentals to Real Systems
0% completed
Load Balancing
A supermarket has nine checkout lanes. A worker at the entrance could send each shopper to the next lane in turn: lane 1, lane 2, and so on to lane 9, then lane 1 again. The worker could also look along the lanes and send each shopper to the shortest line. On a normal day, both rules give the same result, because every cashier works at about the same speed.
Now the receipt printer at lane 4 starts to jam, and each shopper there takes many times longer. Under the first rule, one shopper in nine goes to lane 4, and the line there grows every minute
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%