Topic 022 / Core
System design methodology
Chapter 2.4 · Trade-offs and Method
What and why
Without a repeatable order of operations, a design session either skips a step (no capacity estimate, no failure handling) or stalls deciding what to decide first. System design methodology is a fixed, repeatable sequence of steps — business problem through alternatives considered — that every project in this book follows, at a depth matching the project's complexity. Builds on: → 21 — the method is the scaffolding that makes trade-off decisions happen at the right point, in the right order, instead of ad hoc.
Diagram
The 21-step method grouped into phases:
| Phase | Steps | Covers |
|---|---|---|
| A. Understand | 1–5 | Business problem, requirements, scope, journeys |
| B. Size | 6 | Capacity and workload estimation |
| C. Shape | 7–9 | Domain model, high-level design, critical flows |
| D. Detail | 10–12 | Contracts, schema, low-level design |
| E. Harden | 13–16 | Consistency, security, resilience, scale |
| F. Ship & run | 17–20 | Testing, deployment, observability, DR |
| G. Decide | 21 | Alternatives considered (incl. the simpler option), cost, review |
How it works
- Work the phases in order — high-level design (→ 12) is deliberately scheduled before detailed API and database design, so the details serve a chosen structure instead of accidentally fixing one.
- Match depth to the project: a small project covers every step briefly; a large one spends real time where it matters (a payments system spends more on step 13, consistency and concurrency; a reporting tool spends less).
- Treat the order as a teaching sequence, not a locked pipeline — real design loops back: a capacity number from step 6 can force a rethink of step 4's scope.
- At the end (step 21), state the alternatives considered, including the simpler option (rule 7) — a review showing no rejected alternative is a design that was never actually compared to anything.
- Use the method on every project in this book, from smallest to largest — one method, varying depth, never one method for beginners and another for seniors.
Practical example
A personal URL shortener for one user, walked through the method at minimal depth: (1) problem — share long links as short ones; (2) functional — shorten, redirect; (3) non-functional — low redirect latency, no data loss; (4) scope — no analytics in v1; (5) one journey — paste a long URL, get a short one, follow it later; (6) estimate — a few requests/day, negligible storage; (7–9) one service, one table, one HTTP route pair; (10–12) two routes, one schema, one hashing function; (13–16) single writer so no concurrency conflict, no auth needed for a personal tool, retry on write failure, no scaling needed yet; (17–20) a handful of tests, a single deployed process, logged errors, no DR beyond backups; (21) alternative considered — a spreadsheet of links, rejected because redirects need to be instant and shareable. Every step touched, one line each, because the system is tiny.
When to use it
- Use when: running any real project, at matching depth — the discipline scales down as well as up.
- Avoid when: forcing all 21 steps at full depth onto a throwaway script — that inverts rule 7 by forcing process instead of code.
- Failure scenarios: jumping straight to the database schema (step 11) without the high-level design (step 8) meant to shape it, then redesigning the schema once the component boundaries change anyway.
- Simpler alternative: a one-file prototype with one user needs only a mental one-line pass through the phases (understand, size, shape, ship), not the formal document.
Practice
(Process kind — fill the template on a small real system; 20–30 min, no lab services). Pick a small system you actually use or could build in a day (a habit tracker, a link shortener, a tip calculator with saved history). Write one line per step, all 21, at minimal depth — "not applicable, because…" is a fine answer for several steps, as long as you say why. Done when every one of the 21 steps has a line, even a one-sentence one.
Key takeaway
The method is one repeatable path from problem to review, used at every scale by changing depth, never by skipping steps. Done when you can list the 7 phases from memory and complete a 21-line pass on a small system in under 30 minutes. Used next in → 23 (Part 3 begins), and in the 21-step method followed by every project from here on.
References
None — this topic makes no external claims.
Source directory