System design, drawn
38 patterns and 16 systems, drawn as isometric line art and played out one step at a time. Packets travel the wires, parts light up, and the state under each label changes as it goes. Yellow means active right now.
If you want one route through it
10 patterns that touch every topic, ordered so nothing arrives before the thing it assumes. Worked out from what each pattern declares, not hand-picked.
Patterns
Single mechanisms, grouped by what they are about. 18 of 38 assume nothing at all, so most of this can be read in any order. The rest say what they expect you to have seen.
- FoundationsWhat one request actually does, and where its time goes.How a request travelsLatency and throughputStateless servicesBigger or more
- TrafficDeciding what gets in, and spreading what does.Rate limiterLoad balancingLoad sheddingAPI gatewayAutoscaling
- CachingKeeping answers closer than the thing that produced them.Cache-asideBloom filterContent delivery network
- StorageWhere the data lives, and what it costs to find or move it.Connection poolingStoring passwordsRead replicasShardingWrite-ahead logDatabase indexConsistency models
- MessagingHanding off work, and surviving what goes wrong with it.Publish / subscribeIdempotency keysEvent streamingOutbox patternFan-out on writeDead-letter queueChange data captureBackpressure
- CoordinationSeveral machines agreeing on one answer.Optimistic lockingQuorum reads and writesSagaDistributed lockLeader electionConsistent hashing
- ReliabilityFailing in ways that stay contained.Timeouts and retriesHeartbeatsAuto-waitingCircuit breakerBulkhead
Whole systems
Each one assembled from the patterns, and it says which.
- Design a chat system4 patterns
- Design ride matching4 patterns
- Design a metrics pipeline4 patterns
- Design a CI test grid4 patterns
- Design a browser grid4 patterns
- Design flaky test handling3 patterns
- Scale to a million users5 patterns
- Design a URL shortener4 patterns
- Design a news feed4 patterns
- Design a web crawler4 patterns
- Design search autocomplete4 patterns
- Design a payment flow4 patterns
- Design webhook delivery4 patterns
- Design ticket booking4 patterns
- Design video streaming4 patterns
- Design a job scheduler4 patterns