Part 02 · Revision sheet

System Design Fundamentals, Requirements and Estimation

Key Terms

  • System design — deliberate translation of requirements into an architecture of components, data and interactions under stated constraints (→ 11)
  • HLD — the architecture view: major components, data flow, technology categories, deployment topology (→ 12)
  • LLD — the detailed design inside one HLD component: classes, interfaces, schema, algorithms (→ 13)
  • Software architecture — the set of significant decisions about structure that are expensive to change later (→ 14)
  • Functional requirement — a testable statement of what the system does: actor + action + object + observable result (→ 15)
  • Non-functional requirement (NFR) — a quality attribute written as a measurable acceptance criterion, never a bare adjective (→ 16)
  • Availability — the fraction of time the system is usable (→ 16)
  • Business requirements — stakeholders, priorities, constraints and assumptions that bound the design (→ 17)
  • Use case / user workflow — the step-by-step path an actor takes to a goal, including unhappy paths (→ 18)
  • QPS / peak factor — peak QPS = mean QPS × peak factor (→ 20)
  • Trade-off — a decision that helps one quality attribute at a stated cost to another (→ 21)
  • System design methodology — the fixed 21-step sequence every project follows, depth varies by project (→ 22)

Decision Rules

  • Use the system design loop when building anything more than one person maintains or that outlives its first version; skip the ceremony for a throwaway script (→ 11)
  • Stop HLD before class names, method signatures or schema columns — that detail belongs to LLD (→ 12)
  • Apply the expensive-to-change test to decide whether a decision is architecture or a pragmatic detail (→ 14)
  • Write every NFR as a number with a measurement window — if nobody could measure it, it isn't yet a requirement (→ 16)
  • Distinguish "must" from "would like" when collecting constraints; don't treat every stated preference as a hard constraint (→ 17)
  • Write at least one unhappy path for every workflow, not only the happy path (→ 18)
  • Apply a peak factor to mean QPS rather than sizing for average load alone (→ 20)
  • Weigh trade-off options against the actual estimated numbers and constraints, not a general preference (→ 21)
  • Match the 21-step method's depth to the project, but never skip a step even at minimal depth (→ 22)

Numbers & Formulas

  • Availability: 99.9% ≈ 8.8 h downtime/year; 99.99% ≈ 53 min/year (→ 16)
  • Downtime budget = (1 − availability) × 365 × 24 × 60 minutes/year, e.g. at 99.95%: 262.8 min ≈ 4.4 h/year (→ 16)
  • Latency orders of magnitude: L1/L2 cache ~1 ns, RAM ~100 ns, SSD read ~100 µs, HDD seek ~10 ms, same-datacenter round trip ~0.5 ms, cross-continent round trip ~100+ ms (→ 19)
  • Mean QPS = actions/day ÷ 86,400 s/day; peak QPS = mean QPS × peak factor (→ 20)
  • Concurrent requests: Little's Law, L = λ × W (arrival rate × mean time in system) (→ 20)
  • Storage growth/year = writes/day × avg record size × 365; mean bandwidth = reads/day × avg payload size ÷ 86,400 (→ 20)

Traps

  • Stating a quality claim as an adjective ("fast," "reliable") instead of a number with a measurement window (→ 16)
  • Treating every stated preference as a hard constraint, over-constraining the design (→ 17)
  • Shipping a workflow that only handles the happy path, leaving the first real failure undesigned (→ 18)
  • Chasing false precision in an estimate instead of the right order of magnitude (→ 20)
  • A trade-off decided verbally and never recorded gets re-argued later by someone repeating the already-rejected option (→ 21)

Self-Quiz

  1. Can you turn a one-line product idea into 5+ testable functional requirements? (no → revisit 15)
  2. Can you convert any vague quality claim into a measurable acceptance criterion with a time window? (no → revisit 16)
  3. Can you list a project's stakeholders, priorities, constraints and assumptions without guessing? (no → revisit 17)
  4. Can you produce a full workload model — QPS, storage, bandwidth — from a one-line prompt? (no → revisit 20)
  5. Can you write a trade-off record naming a rejected alternative and the accepted consequence? (no → revisit 21)

Search the guide