Skip to content
All paths

Learning path · 2 stages · 7 days · about 31 min

First principles in a week

Seven short days from one request to many machines: where the time goes, how much load to plan for, and what breaks when one server is not enough.

For: New to system design, or starting interview preparation from the ground up.

Stage 1 of 2 · 0%

First principles badge, not earned yet

0 of 7 days done · about 31 min left

Start · start lessonOne request, end to end

Stage 1 of 2

Not started

Days 1-3 · Where the time goes

Explain where a request spends its time, and why the average and a busy server both mislead.

0%

0 of 3 days · about 11 min · checkpoint to pass

  1. 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
  2. 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
  3. 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 started

Days 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%

0 of 4 days · about 20 min · checkpoint to pass

  1. 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
  2. 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
  3. Replication lagDay 6 · Lesson · 2 minMore copies of the data, and reading your own writes from a copy that is behind.Start lesson
  4. 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.