LEARN · FREE, NO SIGN-IN

Follow it. Redraw it. Apply it.

Visual Guides walk through a system one step at a time. Then you close the guide, redraw it from memory on a blank board or paper, and apply the idea to a practice question. Written guides and case studies go deeper.

VISUAL GUIDES

Watch a system move, one step at a time.

3 published · 37 planned

APIs & queues

When a job runs twice

Watch a lost acknowledgement cause a double charge, then make the retry a no-op with an idempotency key.

Apply it: Design a message broker with per-message acknowledgement

The full Visual Guide map: 9 modules

Planned guides are listed so you can see where the series is going. Until a guide ships, its practice questions and Learn articles already cover the idea.

  1. Foundations & estimation

  2. Scaling & caching

  3. Data & consistency

  4. APIs & queues

  5. Reliability & observability

  6. Architecture

  7. Defensive security

  8. Testing & delivery

  9. Applied system design

STUDY PATHS

Short routes through reading and sketching.

Pipelines and streams

Queues, logs and windows: the plumbing behind analytics, monitoring and rankings.

  1. Pattern Queues, retries and dead letters
  2. Sketch Design a message broker with per-message acknowledgement
  3. Pattern Partitioning and ordering: choosing keys you can live with
  4. Sketch Design a partitioned, replicated log for event streaming
  5. Sketch Design most-shared articles over sliding time windows
  6. Sketch Design a metrics aggregation and query system
  7. Sketch Design a website analytics pipeline and dashboard

WRITTEN GUIDES, PATTERNS AND CASE STUDIES

Original articles.

Written by the Sketchbook project. Off-site reading is labeled separately.

Guides

Guide · 11 minEstimates that drive decisionsBack-of-envelope numbers worth computing (peak QPS, storage growth, fan-out, working set, bandwidth) and how to skip the ones that change nothing.Guide · 10 minHow to run a paper-first practice sessionA 45-minute structure for practising system design on a blank board or a printed sheet, alone or with a friend: scope, request path, follow-ups one at a time, then compare.

Patterns

Pattern · 12 minCaching and hot keysCache-aside vs write-through, TTLs and invalidation, stampede protection, hot-key tactics, negative caching, and how to make a takedown beat your own caches.Pattern · 12 minConsistency and idempotency in practiceWhat read-your-writes, linearizable and eventual consistency mean for a real feature, why retries create duplicates, and how idempotency keys and idempotent consumers make "effectively once" possible.Pattern · 12 minCounting at scale: exact when it matters, approximate when it does notSharded counters, write batching, tumbling and sliding windows, HyperLogLog for distinct counts, count-min sketch for heavy hitters, and presence counts that decay on their own.Pattern · 13 minFan-out and real-time deliveryFan-out on write vs read vs hybrid, celebrity skew, choosing WebSocket, SSE or mobile push, connection gateways and subscription registries, coalescing updates, and backfill on reconnect.Pattern · 11 minGeospatial indexing: turning "near me" into a lookupGeohash, quadtrees and S2 or H3 style cells, how to answer radius queries that cross cell boundaries, and why live locations belong in a different index from static places.Pattern · 11 minPartitioning and ordering: choosing keys you can live withHow a partition key decides where data lives, what stays in order and what melts under load: hash vs range, hot partitions, rebalancing with consistent hashing or fixed partitions, and per-entity sequence numbers.Pattern · 12 minQueues, retries and dead lettersAt-least-once delivery, visibility timeouts and acks, exponential backoff with jitter, poison messages and dead-letter queues, ordering vs parallelism, idempotent consumers, and back-pressure.Pattern · 11 minReservations and contention: selling what you have, exactly onceHow to sell finite inventory without overselling: conditional updates and row locks, holds that expire, pre-split tokens for burst giveaways, and waiting rooms that keep it fair.

Case studies

Case study · 12 minCase study: reading the Dynamo paperA learner’s reading of Amazon’s 2007 Dynamo paper: consistent hashing with virtual nodes, sloppy quorums and hinted handoff, vector clocks, Merkle-tree repair and gossip, and what to sketch from it.Case study · 11 minCase study: reading the Haystack photo storage paperA learner’s reading of Facebook’s 2010 Haystack paper: why one-file-per-photo hit a metadata wall, how photos became needles in large volume files, and what to sketch for photo questions.

READING SHELF

Primary sources, paired with what you’re practicing.

20 free papers, docs and books, plus a few clearly marked optional paid books.

Open the shelf