Guides
System design interview guides
How the interview works, how to estimate, the classic problems and the ideas behind them. Each guide starts with the problem, uses real numbers, and steps through a diagram.
The interview
- System design interview guideHow the 45 to 60 minutes really go, a framework for each step, what gets scored, and a study plan.12 min read
- Interview questionsThe questions that come up again and again, sorted by difficulty, with what each one really tests.11 min read
- Back-of-the-envelope estimationThe handful of numbers and shortcuts you need to size a system in three minutes, and what each one decides.11 min read
Design problems
- Design a URL shortenerThe classic first question, worked end to end: short codes, a read-heavy path, caching and analytics.11 min read
- Design a rate limiterLimit how often each client can call your API: the algorithms, a shared counter, and what to do when it breaks.10 min read
- Design a chat appOne-to-one and group messaging, worked end to end: live connections, ordering, offline users and receipts.11 min read
Core concepts
- Caching strategiesWhen to read through, write through or write behind, and how to keep a cache from lying or falling over.10 min read
- Database shardingHow to split one database across many machines, how to pick the key, and the costs you sign up for.10 min read
- CAP theoremWhat CAP really says, why it is not 'pick two of three', and how to use it in a design.10 min read
- Consistent hashingWhy hash mod N falls apart when servers change, and how a ring moves only a small share of keys.9 min read