Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 06 · System Design · The interview, assembled · about 18 min to read

Play it as a journeyTutor comes with a plan

Numbers to carry in your head

Design the Whole Thing
Design the Whole Thing · Open board

: the capstone board of the System Design track. Every box on it was paid for by a number. This lesson is where those numbers come from.

Before you start. The Memory Hierarchy (cache, locality, the memory wall) showed that a trip to RAM costs about two hundred clock ticks and a trip to disk costs far more, so you already believe that distance has a price. Why Data Is the Hard Part (the five building blocks) showed that one machine eventually fills up. This lesson puts a number on both ideas. You only need to multiply and divide, and to be happy with an answer that is right to one digit.

Lesson 38 of 115 in System Design

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The question that has no calculator
  • Latency: how long one thing takes
  • Powers of two: why a kilobyte is not exactly 1,000 bytes
  • QPS: turn a day into a second
  • Peak: the busiest hour is not the average
  • Back-of-the-envelope: chain four steps
  • The numbers, checked in code
  • Precision, direction and the cost of rounding
  • Little’s law: how many are in flight
  • Throughput, and where the numbers go stale
  • Twenty timed drills

Terms it explains: Latency, power of two, QPS, peak factor, back-of-the-envelope estimate, Common mistakes, Bandwidth.

Review System Design