Taking a Probe
A probe is the interviewer pushing on a weak point they have already seen. It is not an accusation. It means the design is worth testing, which is the conversation the round exists for.
Every probe has a good reply of one of three shapes: name the limit and the fix, name the trade-off and ask which side matters, or change your mind and say why. A curveball is different. It changes the requirement, not the design, and it gets the smallest change to what is already on the board.
What a Probe Is
Probes arrive from minute 20, and each one points at a number, a failure, growth or misuse. On the URL shortener they sound like this. A number: every redirect is a lookup on the one database. A failure: the cache node holding the viral link is lost. Growth: five years from now. Misuse: anyone can walk the keys.
The interviewer arrives with a list. A first design that volunteered its first limit at minute 20 chose where that list starts. The probes in every problem chapter of this book are that list, in the order the interviewer would use it.
Name the Limit and the Fix
This is the reply for a probe that has one right direction. Give the number where the design breaks, the change, and its cost, in one breath.
The URL shortener's growth probe is the model: "Five years from now the table holds 18 billion links. Does it still fit?" The reply puts the table at 27 terabytes with copies, splits it by a hash of the key, and names the cost: the auto-increment that made keys unique is no longer one sequence. That cost is the next probe, and naming it first shows you saw it coming. In the room the reply is short: "With copies that's 27 terabytes, so I'd split the table by a hash of the key. The catch is the auto-increment: it stops being one sequence, so key generation is next."
Name the Trade-Off and Ask
Some probes meet two good answers, and a requirement decides between them. State both, each with the condition that picks it, ask which condition holds, then commit.
Chapter 2's "How stale can a read be?" is the model. A long expiry fits the reads the product can show slightly out of date. Invalidation on write fits the one read that must never be stale. The question back to the interviewer is which reads those are, and once they answer, the reply ends with a choice. Asking is not a way out of choosing. It is the step before it.
Change Your Mind and Say Why
Some probes find a real flaw. The reply says what you missed, changes it, and moves on in the same minute.
The URL shortener's viral link is the case. Say the earlier answer was that one cache node absorbs 50,000 reads a second, because a node handles about 100,000 simple operations a second. That holds until the node is busy with other keys, or gone. One key lives on one node however many nodes there are, so the whole load sits on one machine, and losing it sends the whole load to the store.
Defending the first answer costs more than the flaw did. The turn takes two sentences. You might say: "You're right, one key means one node however many I add. I'll keep a few seconds of the hottest keys inside each app server instead."
Probes and Curveballs
A probe pushes on the design as it stands, under the requirements already agreed, and belongs to Scaling It. A curveball changes the requirement and belongs to the last fifteen minutes.
The URL shortener's takedown is a curveball: a link turns out to be malicious and must stop working everywhere within a minute. Nothing in the design was wrong until that requirement arrived. The strong move is not a new design. It is a marker every cache treats as not found, and a wait bounded by the longest expiry in the path. Then say which earlier decision the curveball reopens: here, how long each cache layer may hold a link.
A probe pushes on a weak point of the design on the board, under the requirements already agreed. Answer it with a change to the design and its cost.
A curveball changes a requirement: a new feature, a new limit, a new region. Answer it with the smallest change to the existing design, and say which earlier decision it reopens.
How the Book Trains It
In every problem chapter, the quiz at the end of First Design is the interviewer's half of the conversation. Each question is a probe in the interviewer's words. The four options are candidate replies, quoted as you would say them, and one of them is the direction a strong candidate takes. The explanation says why a reply heads the right way or the wrong way, and leaves the design itself to the next lesson.
Scaling It then answers the same probes in the same order. It lists them in prose first, and opens each section on its probe in different words, so a reader who skips the quiz, or listens to the page, misses nothing. The block lessons in Chapters 2 to 6 each end with a section on how interviewers probe that block.
- "A probe means the answer was wrong." Most probes point at a limit the first design was meant to have. The reply that shows the limit was known, with its number, is the strong one.
- "Every probe has one right answer." Some meet two good answers, and the strong reply names both, asks which condition holds, and then chooses.
- "Changing my mind looks weak." Defending a flaw after it is shown looks worse. A change with its reason is a trade-off the notes can record.
- "A curveball needs a new design." It needs the smallest edit to the one on the board. Redrawing spends the deep dives and hides what the change touched.
- "Asking the interviewer back is stalling." A question that names the condition both answers turn on is part of the reply, as long as a choice follows it.
- Answer a probe with the number where the design breaks, the change and its cost, in one breath.
- When two answers are good, name the condition that picks each, ask which holds, and commit.
- Say what you missed when a probe finds a real flaw, and change it in the same minute.
- Treat a curveball as an edit to the design on the board, and name the earlier decision it reopens.
Knowledge Check
"Can the person who just posted wait a few seconds to see their own comment?" Scope agreed a bound only for other readers. Which reply fits?
- Say the list was wrong as designed, and send every read to the primary
- Offer the same few seconds or an instant view of their own, ask, then pick
- Name the point where the list stops scaling, and the change that fixes it
- Treat it as a new requirement, and redraw the read path for the author
Which of these is a curveball rather than a probe?
- "One article goes viral. What happens to the node holding it?"
- "Users now want to edit a comment within five minutes of posting."
- "Three years of comments no longer fit on the nodes you drew."
- "The node holding an article's comments dies. What do readers see?"
A probe shows that your cache cannot absorb one viral key, because one key lives on one node. What is the strong reply?
- Defend the first answer, since one node's rate is twice the viral load
- Say what you missed, change the design, and move on in the same minute
- Ask the interviewer which fix they would prefer, and wait for an answer
- Start the design again from the read path, now that it has a flaw in it
You named two good answers and asked which condition holds. Why must the reply still end in a choice?
- The interviewer may not answer, so the question would go nowhere
- Both answers count as wrong until one of them has been picked
- Without a choice, the question reads as handing the decision away
- The notes only count the final sentence of every reply you give
How does a problem chapter's First Design quiz line up with its Scaling It lesson?
- Scaling It repeats the quiz word for word, with the answers marked
- Scaling It answers the quiz's probes in the same order, in prose
- The quiz tests Scaling It's changes, so it is taken after that lesson
- They are independent, since Scaling It answers a different set of probes
You got correct