System design guides
Real systems, from rate limiters and distributed systems to data infrastructure.
130 guides · Newest first · Updated
- Two-Phase Commit and Its Problems: Why 2PC BlocksA plain-English guide to two-phase commit, why it blocks when the coordinator fails, and what three-phase commit tries to fix, built on one running bank transfer example.System design · 24 min read ·
- Design a Unique ID Generator (Snowflake): Sortable IDsA plain-English guide to designing a unique ID generator like Snowflake, built on one running example of a Lucknow story-sharing app.System design · 26 min read ·
- URL Shortener System Design: Keys, Redirects and ClicksA plain-English guide to designing a URL shortener, from short keys and fast redirects to click analytics, built on one running SMS campaign example.System design · 24 min read ·
- YouTube System Design: Upload, Transcode and StreamA plain-English guide to designing a YouTube-like video platform, from resumable uploads to transcoding and adaptive streaming, shown on one running example of a regional video app.System design · 28 min read ·
- Database Replication: Primary-Backup, Multi-Primary and QuorumsA plain-English guide to database replication, from primary-backup and failover to multi-primary and quorums, built on one running payments ledger example.System design · 26 min read ·
- Design an Ad Click Aggregator: Counting Each Click OnceRemoving duplicate clicks, counting each click in the minute it happened and surviving crashes.System design · 28 min read ·
- The 2020 AWS Kinesis Outage Explained: Threads and LessonsThe thread limit behind it, why recovery was slow, how it spread and the design lessons.System design · 25 min read ·
- How Bigtable and HBase Work: LSM Trees and TabletsA plain-English guide to how Bigtable and HBase store data with LSM trees, compaction and tablets, built on one running air-quality sensor example.System design · 26 min read ·
- Block vs File vs Object Storage: Which Fits Which JobA plain-English guide to block, file and object storage, what each is good at and how to choose, built on one running cooperative bank example.System design · 27 min read ·
- CQRS Explained: Separate Reads and Writes Only When It PaysWhat it is, how a separate read model stays in sync, how to handle lag, and when it is not worth it.System design · 24 min read ·
- Design a Code Deployment System: Build, Artifacts, RolloutThe build, the artifact store, gradual rollout and automatic rollback.System design · 25 min read ·
- Design Patterns Every Engineer Should KnowA plain-English guide to creational, structural and behavioural design patterns in Java, and when not to use them, shown on one running example of an online saree store's checkout.System design · 29 min read ·
- Design a Distributed Logging SystemA plain-English guide to designing a distributed logging system that collects, ships, stores and searches logs, built on one running payments app example.System design · 27 min read ·
- How Amazon DynamoDB Works: Partitions, Capacity and DurabilityHow partitions, request routers, adaptive capacity and three-way copies work.System design · 25 min read ·
- How Google Spanner Works: TrueTime and Global ConsistencyA plain-English guide to how Google Spanner uses TrueTime, atomic clocks, commit wait and Paxos to give one global order to transactions, shown on one running example of a remittance ledger.System design · 24 min read ·
- Gossip Protocols and Failure DetectionA plain-English guide to gossip protocols and failure detection, from heartbeats to SWIM and phi accrual, built on one running cache cluster example.System design · 25 min read ·
- Hotel Booking System Design: Search and No Double BookingsStoring room nights, fast date search and stopping double bookings.System design · 25 min read ·
- Instagram System Design: Photos, Stories and the FeedPhoto uploads, storage, CDN delivery, post IDs and 24-hour stories.System design · 27 min read ·
- Design a Gaming Leaderboard with Sorted Sets and Live RanksSorted sets, fair tie-breaks, city and weekly boards, safe score updates and sharding.System design · 28 min read ·
- MapReduce vs Spark: Disk, Memory and What RDDs ChangedWhy one writes to disk between steps, how RDDs keep data in memory and recover with lineage, built on one running crop-yield example.System design · 23 min read ·
- Music Streaming System Design: Build an App Like SpotifyThe catalogue, fast playback, offline downloads and play counting.System design · 27 min read ·
- How Facebook Scaled Memcache: Leases, Regions, InvalidationsLeases, a commit-log delete pipeline, Gutter servers and remote markers.System design · 25 min read ·
- Sharded Counters: Counting Likes at ScaleA plain-English guide to sharded counters, which split one hot like count into many small counters, built on one running example of a short-video app.System design · 25 min read ·
- SOLID Principles Explained: One Java Codebase, Five RulesWhat each rule means, the smell it fixes and when to skip it.System design · 28 min read ·