System Design Handbook

Learn to design systems
that scale

From first principles to production-style architectures β€” with High-Level Design, Low-Level Design, and diagrams for every topic.

15Fundamentals
41Case studies
HLD + LLDEvery lesson
What's inside41 real apps β€” including advanced designs and an S3 deep dive
Building blocks
URL ShortenerRate LimiterAPI GatewayKey-Value StoreDistributed CacheDistributed Scheduler
Social & real-time
News FeedChatTrending TopicsNearby FriendsLeaderboardVideo Conferencing
Media & content
Photo SharingVideo StreamingMusic StreamingWeb SearchWeb CrawlerSearch Autocomplete
Commerce & platform
Ride SharingHotel BookingTicket BookingPayment / WalletE-commerceOnline Code Judge
Advanced / difficult
Order MatchingDistributed CoordinationAd AggregationActive-Active DBSaga TransactionsML RecommendationsExabyte StorageAmazon S3 InternalsKafka StreamingDDoS MitigationEmail at ScaleGitHub at ScaleZomato Food DeliveryFlash Sale BBD/GIF

πŸ‘ Enjoying this handbook? Give it a star on GitHub if you find it helpful.

Who this is for

AudienceWhat you will get
New to distributed systemsA plain-English map of the building blocks
Backend engineersA repeatable method for HLD and LLD
Interview candidatesPractice on the apps interviewers ask most

You should be comfortable writing basic code. You do not need prior experience with Kafka, Redis clusters, or multi-region architecture.

Course structure

Part 1 β€” Fundamentals

Twenty-one sequential lessons covering the vocabulary and patterns every design reuses:

requirements β†’ estimates β†’ APIs β†’ DNS β†’ HTTP / network path β†’ load balancing β†’ databases β†’ replication & sharding β†’ caching β†’ consistency β†’ queues β†’ CDN β†’ services β†’ reliability β†’ retries & resilience β†’ authn & authz β†’ transactions & isolation β†’ SSO β†’ how to HLD β†’ how to LLD

Begin Part 1 β†’

Part 1.5 β€” How to think

Stop memorizing diagrams. Learn a repeatable loop, pattern choosers, narrated first-10-minutes scripts, and a practice rubric β€” then use case studies as drills.

Start thinking β†’

Part 2 β€” Case studies

Forty-four products designed end-to-end with the same template: problem, requirements, capacity math, component diagram, APIs, schema, algorithms, and scale evolution β€” including flash sales (Big Billion Days / Great Indian Festival), GitHub at scale, and Zomato-style delivery. See the full catalog below.

Practice first (cover the HLD), then compare. Start with URL Shortener, then Rate Limiter.

Browse case studies β†’

Featured case studies

Start with these β€” they cover the patterns interviewers ask most often. Each includes HLD diagrams, APIs, schema, and scale notes.

See all 44 case studies in the catalog below, or jump to Flash Sale (BBD / GIF), Zomato, or GitHub at Scale.

Learning path

  1. Read How to use this course β€” study habits and interview tips
  2. Complete Fundamentals 01–21 in order (sidebar matches lesson numbers)
  3. Complete How to think (Part 1.5) β€” loop, choosers, narrations, practice rubric
  4. Attempt each case study’s HLD yourself before reading the solution
  5. Deep-read LLD for APIs, tables, and concurrency

What you will practice

Clarify β†’ Estimate β†’ Draw HLD β†’ Detail LLD β†’ Name trade-offs
(+ Thinking Loop: verb β†’ hot path β†’ shape β†’ correctness β†’ first break)

Every case study trains the same loop so the method becomes automatic.

Case study catalog

#SystemFocus
01URL ShortenerCaching, unique codes
02PastebinMetadata vs object storage
03Rate LimiterToken bucket, Redis
04Key-Value StoreHashing, quorum
05Unique ID GeneratorSnowflake IDs
06News FeedFan-out strategies
07Chat / MessagingWebSockets, delivery
08Photo SharingUpload pipeline, CDN
09Video StreamingTranscoding, ABR
10Ride SharingGeo matching
11Ticket BookingInventory locks
12Web CrawlerFrontier, politeness
13Search AutocompleteTries, top-K
14Notification SystemMulti-channel fan-out
15Payment / WalletLedger, idempotency
16E-commerceCatalog & cart
17Distributed CacheCluster slots
18File StorageSync & dedup
19Collaborative DocsOT / CRDT basics
20Analytics PipelineIngest β†’ warehouse
21Music StreamingSpotify, playlists, CDN
22Hotel BookingAirbnb, calendar locks
23Online Code JudgeLeetCode, sandboxes
24API GatewayRouting, auth, aggregation
25LeaderboardRedis ZSET, gaming ranks
26Trending TopicsHashtags, top-K windows
27Video ConferencingZoom, WebRTC, SFU
28Nearby FriendsGeohash, location
29Web Search EngineInverted index, ranking
30Distributed SchedulerCron at scale, leases

Advanced / difficult (31–44)

#SystemFocus
31Order Matching EngineOrder book, price-time priority
32Distributed Coordinationetcd/Chubby, Raft, leases, watches
33Ad Click AggregationBillions/day, dedup, fraud, windows
34Multi-Region Active-ActiveVector clocks, CRDTs, conflicts
35Saga / Distributed TransactionsCompensations, orchestration
36ML Recommendation FeedFeature store, ranking pipeline
37Exabyte Object StorageErasure coding, S3 internals
38Kafka-Scale StreamingISR, EOS, rebalancing
39Global DDoS MitigationAnycast, scrubbing, edge defense
40Email at ScaleSMTP, indexing, spam, search
41Amazon S3 InternalsHow S3 stores trillions of files
42GitHub at ScaleGit packs, DGit, forks, LFS, Actions
43Zomato / Food DeliveryMarketplace, geo, dispatch, lunch peaks
44Flash Sale (BBD / GIF)Inventory, CDN, sale-night ops

Run & deploy

Live handbook: https://system-design-iota-ten.vercel.app

npm install
npm run dev

Open http://localhost:3000. This is a Next.js app (and a PWA) β€” deploy to Vercel with git push.

Offline / PWA

  1. Build production: npm run build && npm start
  2. Visit lessons while online (they get cached)
  3. Install the app from the browser (or use the Install banner)
  4. Turn off the network β€” previously opened pages still load

Details: Deploy this site.


πŸ‘ Found this useful? Give the project a star on GitHub β€” it takes one click and helps more learners find this handbook.

Ready? Start with How to use this course, then continue to What is System Design?.