Loading lesson…
Level 1 · Apprentice0 XP
How a load balancer chooses a server, notices failures, and where it sits.
Step 1 / 5
ProblemRequests are sent in turn to three servers. But some requests are cheap and some take ten seconds. One server ends up with all the slow ones and times out while the others wait.
← → step
Before this: Bigger machine or more machines
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Run three copies of a small service behind nginx or HAProxy. Try round robin, then least_conn, while one endpoint sleeps randomly. Add a health check and kill one instance.