Last updated: 2026-08-08
Ch 28 · System Design Methodology
Stage: 第三阶 · Expert (L3 → L2) | Pillar: Engineering Practice
Core Question
From requirements to architecture — how does an engineer make decisions?
Soul Insight
System design is not about finding the "right answer" — it is about making explicit tradeoffs under constraints. The goal is not a beautiful architecture; it is one whose tradeoffs are understood, documented, and appropriate for the context. Future engineers should be able to read why, not just what.
Concepts
- Requirements decomposition: functional vs non-functional, what drives architecture
- Capacity estimation: back-of-envelope math as a decision tool
- Architecture selection framework: start with the simplest thing that could work, then identify forcing functions to evolve
- API design: contracts are load-bearing; changing them is expensive
- Evolutionary design: design for change, not for the ultimate solution
- Documentation of tradeoffs: ADRs (Architecture Decision Records)
Practice Anchor
Complete system design for a URL shortener:
- Requirements: read/write ratio, scale (URLs/day), latency targets
- Capacity estimate: storage, bandwidth, QPS
- Data model: how is a short code mapped to a URL?
- Architecture: single DB → read replicas → caching tier (driven by bottleneck analysis)
- Write an ADR for the most significant tradeoff made
Status
System design notes exist. This chapter adds the methodology — how to think, not just examples.
Related Notes
- System Design — existing system design notes
- Architecture Styles
- Ch 26 · Distributed Systems