Book Deep Read · System Design Interview Vol 1 · Ch 3

A Framework for System Design Interviews

System Design Interview: An Insider's Guide · Vol 1 · Ch 3 · Alex Xu · 2020

中文 →

What is this chapter about?

Hire someone to redo your kitchen and the good ones never open with "I'll put in marble." They ask first: how many people live here? How old are the kids? A cat? What's the budget? How much do you actually cook? Only after that does a plan mean anything. This chapter teaches the engineer's version of that opening: given a deliberately vague, wide-open question, how do you use a fixed order of moves to turn it into a question you can actually answer.

A strange thing first

This is the only chapter in the book that teaches no technology at all. No caches, no databases, not a single component name. And it is the chapter that decides whether you pass. Because this kind of exam is never a contest over who has the right answer — the question has no right answer. It watches something else: hand you a thing nobody has thought through, and can you tidy it into a plan, step by step.

Why the old world was hard

The most common failure looks like this: the question ends and the person starts answering. Out of nerves, out of fear of silence, out of a sense that answering fast looks smart.

The trouble is that they are usually answering a different question. Starting before you understand is spending forty minutes on a problem you invented in your own head. However well you do it, the person across the table is thinking one thing the whole time: why didn't you ask?

The opposite failure is just as common: talking about the big picture forever and never letting anything land. It looks thorough, but the one sentence they were waiting for — "and how would you actually build that part" — never arrives.

Both are the same illness: no order of operations.

The core mechanism: four moves

① Ask first. Who uses this, which features must exist, roughly how many people, how fast does it need to be. Only then do you know whether you are building a bicycle or a freight train — and those two share no method whatsoever.

② Sketch it rough, and get a nod. Put a few boxes on the board: where data comes in, who it passes through, where it rests, how it goes back out. Then stop and ask, "Does this direction look right to you?" That pause matters — going on only after a nod is what keeps you from walking the wrong way for twenty minutes.

③ Pick the one or two parts that matter most and dig in. Not every part; there isn't time, and it isn't the point. What they want to see is usually one or two boxes. Pick those and explain what is actually inside: how it works, why it is built that way, and what it costs.

④ Wrap up. Spend the last few minutes on: where this thing breaks first, what happens when a piece dies, what you would watch after it ships, and what you would change if ten times as many people showed up.

How to use it

One discipline runs through all four: say it out loud. They cannot see inside your head, so the two minutes you spend thinking silently register as two minutes of nothing. Even hesitation should be spoken: "I'm torn between two approaches, one is cheaper and one is faster, and I lean toward the second because…" — that sentence is itself worth points.

One honest cost: this order only guarantees that you explain yourself well. It is no substitute for actually knowing the material — the framework lets someone competent perform normally; it does not let someone unprepared bluff through.

Remember this

What is being graded is not the diagram you end up with, but how you got from one vague sentence to that diagram. Ask first, sketch rough and get a nod, dig into one or two parts, leave three minutes to wrap up — narrating the whole way.

Want the mechanisms, the time budget and the diagrams? → Switch to the deep read