Topic 011 / Core
Introduction to system design
Chapter 2.1 · What System Design Is
What and why
As a system grows past what one person can hold in their head, ad hoc choices compound into outages, rewrites and arguments nobody can resolve. System design is the deliberate translation of requirements into an architecture of components, data, and interactions that meets functional and quality goals under stated constraints. Builds on: → 10 (client–server architecture) — even the minimal server built there is a system design, just small enough to hold in one head.
Diagram
requirements ──► constraints ──► options ──► chosen architecture
▲ │
└───────────── feedback from reality ◄─────────┘
System design is a loop, not a single pass: reality (load, failures, new requirements) feeds back and reopens earlier decisions.
How it works
The scope of the discipline, in the order this book teaches it:
- Gather what the system must do (functional) and how well (non-functional) → 15, 16.
- Understand who wants what, and why (stakeholders, constraints) → 17.
- Model how real users move through the system, including failure paths → 18.
- Size the problem with real numbers → 19, 20.
- Choose a shape: components, data flow, technology at the high level → 12.
- Only then detail each component's classes, schemas, algorithms → 13.
- Record the trade-offs made along the way → 21, inside a repeatable method → 22.
Practical example
"Design a parking lot's entry system." One pass through the loop: requirement — a car must get a ticket on entry and pay on exit; constraint — the gate hardware already installed must be reused; option considered — print a ticket with a timestamp vs. read a license plate; chosen architecture — timestamp ticket, because the existing hardware has no camera. One requirement, one constraint, one structural decision, visibly linked.
When to use it
- Use when: building anything more than one person maintains, or that outlives its first version.
- Avoid when: writing a throwaway script with one user and one run — skip the ceremony.
- Failure scenarios: designing the architecture that looks most interesting before requirements are known, then discovering it solves the wrong problem.
- Simpler alternative: for a truly disposable script, just write the code; the loop above only pays for itself once something has to keep working.
Practice
(Process kind; 15 min, no lab services). Pick a system you use daily (a todo app, a note app). Write down: 3 functional requirements it clearly satisfies, 2 stakeholders and why they'd care if it broke, and 1 structural choice you can observe as a user (e.g., it works offline, implying local storage) with the requirement that forces it. Done when you can point at one design decision and name the exact requirement behind it.
Key takeaway
System design is requirements, translated deliberately into structure, under constraints — and it loops. Done when you can state that definition from memory and give one example of a requirement driving a structural choice. Used next in → 12 (HLD), → 15 (functional requirements).
References
None — this topic makes no external claims.
Source directory