Learning path · 2 stages · 7 days · about 31 min
First principles in a week
For: New to system design, or starting interview preparation from the ground up.
Stage 1 of 2 · 0%
First principles badge, not earned yet0 of 7 days done · about 31 min left
Start · start lessonOne request, end to endStage 1 of 2
Not startedDays 1-3 · Where the time goes
Explain where a request spends its time, and why the average and a busy server both mislead.
0 of 3 days · about 11 min · checkpoint to pass
- You are hereOne request, end to endDay 1 · Lesson · 3 minFollow one checkout hop by hop, then find the hop that makes it slow.Start lesson
- Next upRead the slow requestsDay 2 · 2 chapters · 3.5 min · 0 of 2 partsThe average hides the slow requests; then an outage where the first hop never answered.Start lesson
- Queueing and utilisationDay 3 · Lesson · 2 minWhy 90% busy is too busy: waits explode before the server is full.Start lesson
Checkpoint · 3 questions. Unlocks when the 3 steps left in this stage are done.
Stage 2 of 2
Not startedDays 4-7 · Growing past one machine
Size a design for its peak, scale it past one server, and keep reads and files from becoming the bottleneck.
0 of 4 days · about 20 min · checkpoint to pass
- Size it for the peakDay 4 · 2 chapters · 4.5 min · 0 of 2 partsDaily numbers, fan-out and peaks; then a presale at four times anything planned for.Start lesson
- Grow past one machineDay 5 · 3 chapters · 6.5 min · 0 of 3 partsA bigger machine is still one machine; scaling out needs stateless servers and an even spread.Start lesson
- Replication lagDay 6 · Lesson · 2 minMore copies of the data, and reading your own writes from a copy that is behind.Start lesson
- Where the files goDay 7 · 2 chapters · 5 min · 0 of 2 partsUploads straight to storage, then served from close to every user.Start lesson
Checkpoint · 3 questions. Unlocks when the 4 steps left in this stage are done.
A step ticks itself when you finish it anywhere on the site. A chapter counts when all of its lessons are done, and shows how far along it is before that. Times are estimates.