System design guides
Real systems, from rate limiters and distributed systems to data infrastructure.
130 guides · Newest first · Updated
- Autocomplete System Design: Tries, Ranking and LatencyTries with ready-made top suggestions, ranking from search logs and a tight latency budget.System design · 25 min read ·
- Back-of-the-Envelope Estimation for System DesignThe latency numbers to know and how to turn daily users into requests per second, storage, bandwidth and servers.System design · 29 min read ·
- CAP Theorem vs PACELC: The Latency Half CAP Leaves OutA plain-English guide to the CAP theorem and PACELC, showing what CAP says about network splits and the everyday latency trade-off it leaves out, built on one running homestay booking example.System design · 25 min read ·
- How a CDN Works: Push vs Pull, Cache Keys and PurgesEdge servers, push and pull, cache keys, TTLs, purges and a test edge you can run.System design · 28 min read ·
- Circuit Breaker Pattern: Fail Fast When a Dependency Is SickIts three states, trip rules, fallbacks and retries.System design · 20 min read ·
- Consistency Models: From Linearizable to EventualLinearizable to eventual, each step shown with a real system and one feature of a live sports app.System design · 26 min read ·
- Consistent Hashing Explained: Add Nodes Without a ReshuffleA plain-English guide to consistent hashing, from the hash mod N trap to rings, virtual nodes and bounded loads, built on one running image cache example.System design · 24 min read ·
- Leader Election, Leases and Distributed LocksA plain-English guide to distributed locks, leases, fencing tokens and leader election with Redis, ZooKeeper and etcd, built on one running warehouse software example.System design · 26 min read ·
- Design a Distributed Task Scheduler: Cron at ScaleDue-job polling, row locks, leases, duplicate checks, retries and priorities.System design · 26 min read ·
- Delivery Guarantees: At-Most, At-Least and Exactly-OnceA plain-English guide to at-most-once, at-least-once and exactly-once delivery, and why exactly-once is really effectively-once, built on one running loyalty points example.System design · 22 min read ·
- Quadtrees and Geohashes: How Apps Find Nearby Riders FastA Pune bike-taxi app finding the nearest free rider.System design · 24 min read ·
- Design a Key-Value Store: A Dynamo-Style GuidePartitioning, copies, quorums, conflicts and repair.System design · 26 min read ·
- Lamport Clocks and Vector Clocks: Ordering Without a ClockHow devices order events without a shared clock, spot concurrent edits and merge them. It uses one running example of an offline notes app.System design · 25 min read ·
- Load Balancers Explained: L4 vs L7, Global vs LocalL4 vs L7, algorithms, health checks, sticky sessions and global routing, with nginx and HAProxy behaviour we tested, shown on one running ticketing site example.System design · 30 min read ·
- News Feed System Design: Fan-Out, Celebrities and RankingFan-out on write vs fan-out on read, the celebrity problem, feed caches and where ranking fits, built on one running social app example.System design · 24 min read ·
- Non-Functional Requirements: Availability, Reliability, ScalabilityA plain-English guide to non-functional requirements that turns fast, reliable and scalable into measurable targets, using one running stock-trading app example.System design · 23 min read ·
- Notification System Design: Push, SMS and Email, Done RightPush, SMS and email, preferences, priority lanes, safe retries and duplicate checks.System design · 26 min read ·
- Design an Online Judge (LeetCode-Style) for Contest ScaleA beginner-friendly guide to designing a LeetCode-style online judge, from the submission queue and sandbox to verdicts, fair timing and contest spikes, built on one running example of a weekly contest site.System design · 24 min read ·
- Design a Proximity Service: Nearby Restaurants at ScaleGeohash cells, the 9-cell search, Redis geo sets, replicas and caches.System design · 24 min read ·
- Raft Consensus Explained: Leader Election and Log ReplicationState machine replication, leader election, log replication, safety, stale reads and pre-vote.System design · 29 min read ·
- Retry, Backoff and Jitter: How to Avoid a Retry StormA plain-English guide to retries, exponential backoff and jitter, and how to avoid causing a retry storm, shown on one running example of a weather data API.System design · 19 min read ·
- Sagas: Distributed Transactions Without 2PCA plain-English guide to the saga pattern, covering compensating steps, step order, safe retries and isolation gaps, built on one running online shop example.System design · 23 min read ·
- Sharding Strategies: Range, Hash, Directory and Hot KeysA plain-English guide to range, hash and directory sharding, choosing a shard key and fixing hot keys, built on one running example of a music streaming app.System design · 28 min read ·
- Short Video App System Design: Infinite Feed and PrefetchingEndless paging, prefetching the next swipe and fast-starting segments.System design · 23 min read ·