System Design Interview Preparation
A repeatable framework, estimation practice, building blocks and worked case studies.
Practise each case study out loud with a timer, and spend the first third of the time on requirements and estimates.
Requirements and the 18-step framework
A structure that keeps you from jumping straight to technologies.
The worked example shows how estimates drive decisions such as caching and sharding.
The case study’s API section covers idempotency keys, asynchronous
202responses and cursor pagination.Data modelling and storage selection
Access patterns first, then the store that fits them.
Also: Data models, Storage engines
High-level design with reusable building blocks
Load balancers, caches, brokers, replication and sharding, each with its failure modes.
Replication, partitioning, caching and asynchronous processing, chosen from the numbers.
Also: Load balancing and proxies, Caching strategies, Consistent hashing, Replication, Partitioning (sharding)
Consistency and distributed-systems theory
Interviewers probe what guarantees your design gives and what it costs.
Also: Transactions and isolation, Consistency and consensus, Distributed systems faults
Communication: queues, delivery semantics and real-time push
At-least-once delivery plus idempotency is the answer to many follow-up questions.
The failure-handling table shows how to reason about every dependency being slow or down.
Trade-offs and follow-up questions
Defending a design matters as much as drawing it; this article models trade-off reasoning.
More case studies: URL shortener, rate limiter, payment system, proximity service
Practise the framework on systems with different bottlenecks.
Also: Rate Limiter, Payment System, Proximity Service, Unique ID generation
Real-time and social systems: chat, news feed, notifications, collaborative editing
Persistent connections, fan-out and convergence of concurrent edits.
Also: News Feed, Notification Service, Collaborative Editing
Data-heavy systems: video, crawler, autocomplete, file sync, metrics
Pipelines, object storage, tries, Bloom filters and time-series data.
Also: Web Crawler, Search Autocomplete, File Storage and Sync, Metrics and Alerting, Probabilistic data structures
Infrastructure and extreme-scale systems: key-value store, stock exchange, ride sharing, flash sale
Quorums, determinism, moving geospatial data and traffic spikes.
Also: Stock Exchange, Ride Sharing, Flash Sale