LESSON 07 · Priority and tradeoffs

Deep dive where risk is highest

Spend detail on the component most likely to determine the outcome.

SYSTEM VIEW

The decision path

Diagram view
Swipe or scroll to explore the full diagram
Go deep where the risk is highestChoose a critical component or bottleneck, compare alternatives against the stated goals, and document the chosen tradeoff.Go deep where the risk is highestfocusjustifyRisk signalbottleneck or failureCompare optionscost · complexity · gainChosen tradeoffdecision + reasonDepth should follow risk; it does not require redesigning every part at once.
Choose a critical component or bottleneck, compare alternatives against the stated goals, and document the chosen tradeoff.
Follow how each decision narrows and strengthens the design.
THE IDEA

How it works

After the blueprint is agreed, choose a critical component or bottleneck for closer study. It might be feed generation under heavy reads, short-link identifiers, or chat presence. Requirements, estimates, and feedback determine the target; equal detail across every box wastes time.

Compare plausible approaches using workload and failure behavior. Take the read-heavy feed from the earlier estimate, where fan-out means one event turning into many operations. With fan-out on read, each open assembles the feed on demand: 580 opens per second × 300 followed accounts is about 174,000 lookups per second at peak. With fan-out on write, each new post is copied into every follower’s stored feed in advance, so reads are cheap: 100,000 posts per day × 200 followers each is 20 million inserts per day, about 230 per second. That looks better until an account with 10 million followers posts once and triggers 10 million inserts. These figures are examples. Twitter has publicly described a hybrid that fans out most accounts on write and merges very large accounts at read time.

For each option, explain what improves, what becomes more complex, and what measurement would settle it. If current needs fit a simpler design, its lower operating cost belongs in the decision: at 50 feed opens per second, the on-demand query may be all you need. Stop once the decision is resolved, because further detail rarely changes the outcome.

DECISION POINT

Estimates show feed reads greatly exceed writes. Which part deserves the next deep dive?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Prioritize detail that resolves a requirement or major risk.
  • Compare alternatives and operational cost, not just happy-path speed.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 2
ApplyQUESTION 01

The blueprint for a payment service is agreed. Its riskiest requirement is never charging a customer twice. Where should the deep dive go?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 2 checkpoints answered correctly to complete this lesson.