System design fundamentals
Load balancing, caching, sharding, replication, CAP, back-of-envelope math (1M DAU ≈ ~12 QPS average, plan for 10x peak). Fundamentals, not buzzwords.
The mental model
System design is city planning, not architecture of a single building. One web server is a house — you can reason about every room. A system serving millions is a city: you cannot hand-place every resident, so you build systems that place them for you — roads that route traffic (load balancers), neighbourhoods that specialise (services), warehouses near demand (caches and CDNs), and copies of critical infrastructure so one fire does not darken the whole grid (replication). The planner's job is not to know where every person is, but to design flows that stay healthy as the population grows tenfold.
The single most important habit is estimating before designing. A city planner who does not know whether they are planning for a village or a metropolis will build the wrong thing. So the first move in any design is back-of-envelope math: how many users, how many requests per second, how much data, growing how fast. The useful anchor: 1 million daily active users making ten requests each is about 115 requests per second on average (the figure scales with requests per user per day: at one request a day, 1M users is only about 12 requests per second) — and you must plan for peak, typically 3-10x the average, because traffic is not uniform. That one calculation tells you whether you need one box or one hundred, and doing it out loud is the strongest early signal in a design interview.
The second habit is naming the tradeoff instead of the buzzword. "I'll add caching" is a buzzword. "I'll add a read-through cache because reads are 100x writes and 20% of items get 80% of traffic, accepting staleness bounded by a 60-second TTL" is a design decision. Every component you add solves one problem and creates another — a cache creates invalidation, a queue creates eventual consistency, a shard creates cross-shard queries — and senior-level design is the honest accounting of what each addition costs.
Why this exists in interviews. The design round tests whether you can reason about a system you cannot fully see, under uncertainty, with tradeoffs — which is most of senior engineering. Juniors get a coding round instead; from mid-level up, the design round is where the level is decided, because it reveals whether you drive structure (requirements, math, design, failure modes) or wait to be led.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision