Results and the cheat sheet fill in as you go. Nothing here is locked; come back whenever you like.
Next in this path: Caching · 6 lessons · 1 h 10 min
Mastery by outcome
Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Work out how many servers a given number of requests per second needs, add one spare, and say why more machines can beat one bigger machine.
Not yet
2
Say which server round robin picks for each request, write the rule as one line of code, and say when least connections picks differently.
Not yet
3
Say what happens to requests when a server dies, which ones fail before a health check notices, and how checking more often changes that.
Not yet
4
Keep servers stateless by putting each user's session data in a shared store, and say why sticky sessions are the weaker fix.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.
Say what a health check is: a small request the load balancer sends to each server, over and over, to find out whether it still answers.
Say that a server that does not answer is taken out of rotation, and round robin skips it from then on.
Follow the nine requests: B crashes before request 4, request 5 fails, the check after request 6 takes B out, and 8 succeed while 1 fails.
Say that checking more often shortens the gap and costs fewer failed requests, and that real systems usually wait for two or three failed checks in a row.
Size a group of servers with a spare, predict how round robin shares requests, find the requests a crash costs, make servers stateless, and choose a plan that survives a crash.