READING SHELF
Read the sources.
Papers, docs and free books that pair with our guides and questions. Notes are ours; the works belong to their authors. Everything on Sketchbook itself stays free.
Free primary sources
- High Performance Browser Networking
The clearest free explanation of where web latency comes from: round trips, TCP, TLS and HTTP/2. Read the latency and TLS chapters next to the web request guide.
Pairs with: Follow a web request · Fast for one user, fast for everyone · Pushing updates to open screens · Estimates that drive decisions · Fan-out and real-time delivery · Design a weather app · Design a video upload and streaming service · Design live comments for live video
- RFC 9110: HTTP Semantics
The reference for methods, status codes and which requests are safe or idempotent. Look up a status code here before arguing about 301 vs 302.
Pairs with: Follow a web request · Shaping an API contract · Consistency and idempotency in practice · Design a URL shortener · Design a Pastebin-style text sharing service
- RFC 9111: HTTP Caching
How browsers and shared caches decide whether a stored response is still fresh. Useful when a design leans on edge caching.
Pairs with: Where a cache helps (and where it lies) · Content near the user · Caching and hot keys · Design a URL shortener · Design a weather app · Design a video upload and streaming service
- Amazon Builders' Library
Short, practical essays from engineers who run large services: caching, timeouts and retries, load shedding and queue backlogs. Pick the essay that matches the guide you just finished.
Pairs with: Timeouts, retries and knowing when to stop · Saying no under load · Where a cache helps (and where it lies) · Queues, retries and dead letters · Caching and hot keys · Design an API rate limiter · Design a message broker with per-message acknowledgement
- Making retries safe with idempotent APIs
How a caller-supplied token makes a repeated request safe, and the edge cases (same token, different parameters) that are easy to miss.
Pairs with: When a job runs twice · Timeouts, retries and knowing when to stop · Consistency and idempotency in practice · Queues, retries and dead letters · Design a wire transfer API with a ledger · Design a card payment processing API · Design a message broker with per-message acknowledgement
- Designing robust and predictable APIs with idempotency
A payments team explains why clients must be able to retry and how idempotency keys make that safe. Short and concrete.
Pairs with: When a job runs twice · Shaping an API contract · Consistency and idempotency in practice · Design a card payment processing API · Design a wire transfer API with a ledger
- Site Reliability Engineering
Free online. The chapters on monitoring, handling overload and cascading failures are the most useful for interviews.
Pairs with: Seeing inside the system · Saying no under load · Surviving a dead server · Design health monitoring for a large cluster · Design an on-call paging and escalation system · Design a metrics aggregation and query system
- The Site Reliability Workbook
The hands-on companion to the SRE book: worked examples of alerting on service level objectives and running canary releases.
Pairs with: Seeing inside the system · Shipping changes safely · Design an on-call paging and escalation system · Design health monitoring for a large cluster
- Building Secure and Reliable Systems
Free online. Treats security and reliability as one design problem: least privilege, safe defaults and recovering from compromise.
Pairs with: Proving who is calling · Deciding what a caller may do · Spotting and containing abuse · Design a login and authentication system · Design defensive detection and containment of coordinated bot traffic · Design a wiki-style document management system
- Authentication Cheat Sheet
A checklist of defensive practices for login flows: password storage, error messages, rate limits and multi-factor authentication.
Pairs with: Proving who is calling · Design a login and authentication system
- PostgreSQL: Transaction Isolation
Precise, readable definitions of each isolation level and the anomalies it allows, from a real database rather than a textbook.
Pairs with: What a transaction protects · When a job runs twice · Reservations and contention: selling what you have, exactly once · Consistency and idempotency in practice · Design a hotel booking system · Design a wire transfer API with a ledger · Design a giveaway for 6 million free items in one hour
- How to do distributed locking
Why a lock with a timeout is not enough for correctness, and how fencing tokens fix it. Read before putting a lock in a design.
Pairs with: When nodes disagree · When a job runs twice · Reservations and contention: selling what you have, exactly once · Consistency and idempotency in practice · Design a distributed job scheduler · Design a giveaway for 6 million free items in one hour
- Dynamo: Amazon's Highly Available Key-value Store
Consistent hashing, replication, quorums and conflict handling in one readable paper. The reference point for most key-value store answers.
Pairs with: Splitting data across machines · Keeping copies in step · When nodes disagree · Case study: reading the Dynamo paper · Partitioning and ordering: choosing keys you can live with · Design a distributed key-value store
- The Google File System
A single coordinator for metadata and many servers for large chunks of data. The split still shows up in object storage and file sync designs.
Pairs with: Where big files live · Surviving a dead server · Design a Dropbox-style file sync service · Design a system to sort a 100 TB dataset · Design a petabyte-scale migration to the cloud
- MapReduce: Simplified Data Processing on Large Clusters
Batch processing split into map and reduce steps, with re-execution as the answer to failed machines. The baseline for any batch-vs-stream discussion.
Pairs with: Batch later or stream now · Counting at scale: exact when it matters, approximate when it does not · Design a system to sort a 100 TB dataset · Design a website analytics pipeline and dashboard · Design a web crawler
- Bigtable: A Distributed Storage System for Structured Data
Sorted rows split into ranges, with writes buffered in memory and flushed to immutable files. A good companion to how indexes and storage engines work.
Pairs with: How an index finds a row · Splitting data across machines · Partitioning and ordering: choosing keys you can live with · Design a distributed key-value store · Design a metrics aggregation and query system
- Kafka: a Distributed Messaging System for Log Processing
A partitioned, append-only log where consumers track their own position. Short, and it explains why ordering is per partition.
Pairs with: One event, many listeners · Batch later or stream now · Partitioning and ordering: choosing keys you can live with · Queues, retries and dead letters · Design a partitioned, replicated log for event streaming · Design a website analytics pipeline and dashboard · Design most-shared articles over sliding time windows
- In Search of an Understandable Consensus Algorithm (Raft)
How a cluster elects one leader and keeps a replicated log consistent, written to be understood. Read sections 5.1 to 5.4 first.
Pairs with: When nodes disagree · Keeping copies in step · Design the control plane for a managed database service · Design a distributed key-value store
- Dapper, a Large-Scale Distributed Systems Tracing Infrastructure
Request-scoped traces with sampling and propagated context. The origin of most tracing designs in use today.
Pairs with: Seeing inside the system · Design a distributed tracing system
- Finding a needle in Haystack: Facebook's photo storage
Why one file per photo stopped scaling, and how packing many photos into large files cut metadata lookups. Pairs with our case study.
Pairs with: Where big files live · Content near the user · Case study: reading the Haystack photo storage paper · Design a private photo library · Design a photo sharing app
Optional books and paid resources
Not required for anything on this site. Listed because people ask what to read next.
- Designing Data-Intensive Applications
Optional and paid. A thorough book on storage engines, replication, partitioning, transactions and stream processing. Everything on this site works without it.
Pairs with: How an index finds a row · Keeping copies in step · What a transaction protects · Batch later or stream now · Partitioning and ordering: choosing keys you can live with · Consistency and idempotency in practice · Design a distributed key-value store · Design a partitioned, replicated log for event streaming · Design a hotel booking system
- Release It! (second edition)
Optional and paid. Stories of production failures and the patterns that contain them: timeouts, circuit breakers, bulkheads. Free alternatives on this shelf cover the same ideas.
Pairs with: Timeouts, retries and knowing when to stop · Surviving a dead server · Shipping changes safely · Queues, retries and dead letters · Design a card payment processing API · Design an on-call paging and escalation system