Learn system design from first principles.
Curriculum structure
- 01 Foundations · 13 lessons
- 02 APIs, services and protocols · 13 lessons
- 03 Data modeling and SQL · 13 lessons
- 04 NoSQL, partitioning and IDs · 14 lessons
- 05 Caching and fast reads · 6 lessons
- 06 Distributed coordination · 13 lessons
- 07 Storage engines · 20 lessons
- 08 Async work and streams · 10 lessons
- 09 Search and retrieval · 17 lessons
- 10 Analytics and sketches · 13 lessons
- 11 Realtime, social and feeds · 10 lessons
- 12 Geo, matching and recs · 8 lessons
- 13 Media, files and CDN · 11 lessons
- 14 Reliability and operations · 13 lessons
- 15 Service and data designs · 7 lessons
- 16 Product designs · 8 lessons
- 17 Media and operations designs · 6 lessons
- 18 Engineering case studies · 5 lessons
Full curriculum
Module 01 · Foundations
- 01.01 Requirements clarification
- 01.02 Logical system design
- 01.03 Non-functional requirements
- 01.04 System design tradeoffs
- 01.05 Availability, durability, consistency, cost
- 01.06 Back-of-the-envelope capacity planning
- 01.07 How a server handles many requests
- 01.08 Horizontal vs vertical scaling
- 01.09 Monolith vs microservices
- 01.10 Repository pattern
- 01.11 Extensible data modeling
- 01.12 Cost-aware architecture
- 01.13 When not to add infrastructure
Module 02 · APIs, services and protocols
- 02.01 API design contracts
- 02.02 Service-to-service communication
- 02.03 HTTP, REST, and gRPC
- 02.04 TCP vs UDP
- 02.05 API gateway vs load balancer
- 02.06 Load balancers · with code
- 02.07 Consistent-hashing load balancing
- 02.08 Event contracts
- 02.09 Retries, timeouts, and idempotency
- 02.10 Batching
- 02.11 Backpressure
- 02.12 Tail latency
- 02.13 Load shedding
Module 03 · Data modeling and SQL
- 03.01 Relational database design
- 03.02 a key-value store on SQL · A design walkthrough you can build from.
- 03.03 Database indexing
- 03.04 B-tree
- 03.05 Query planning
- 03.06 Database locking and isolation
- 03.07 MVCC
- 03.08 Database WAL and recovery · with code
- 03.09 Database ticket servers
- 03.10 Relational database scaling
- 03.11 Online indexing
- 03.12 Schema evolution
- 03.13 Soft delete
Module 04 · NoSQL, partitioning and IDs
- 04.01 NoSQL decision boundaries
- 04.02 Document vs key-value stores
- 04.03 Columnar vs wide-column stores
- 04.04 Graph database decision boundary
- 04.05 Sharding and partitioning
- 04.06 Hot partitions
- 04.07 Consistent hashing · with code
- 04.08 Distributed ID generation
- 04.09 UUID, ObjectId, and Snowflake
- 04.10 Snowflake ID design · with code
- 04.11 Clock skew and ID ordering
- 04.12 Keyset pagination · with code
- 04.13 Bloom filters · with code
- 04.14 Hot and cold storage, archival
Module 05 · Caching and fast reads
- 05.01 Caching layers
- 05.02 Distributed cache design
- 05.03 Cache eviction policies · with code
- 05.04 TTL expiration and cache reapers · with code
- 05.05 Cache concurrency control
- 05.06 Cache availability and database fallback
Module 06 · Distributed coordination
- 06.01 Distributed systems foundations
- 06.02 Consistency models
- 06.03 Replication
- 06.04 CAP and PACELC
- 06.05 Clocks and ordering
- 06.06 Consensus
- 06.07 Leader election · with code
- 06.08 Distributed locks and leases
- 06.09 Redis Redlock and fencing tokens
- 06.10 Circuit breakers and timeouts
- 06.11 Gossip protocol · with code
- 06.12 Metadata service and node discovery
- 06.13 Distributed hash tables
Module 07 · Storage engines
- 07.01 Storage engine design constraints
- 07.02 Storage engine tradeoffs
- 07.03 A file-backed dictionary
- 07.04 Custom binary file format
- 07.05 Byte-range indexed object storage
- 07.06 Immutable versioned data files
- 07.07 Log-structured storage
- 07.08 Bitcask storage engine
- 07.09 LSM-tree storage engine
- 07.10 Memtable, WAL, and SSTable
- 07.11 LSM read path: Bloom filters and sparse index
- 07.12 Compaction and amplification
- 07.13 Object storage vs database
- 07.14 S3 object storage architecture
- 07.15 Range partitioning vs consistent hashing for storage
- 07.16 Partition manager and map table
- 07.17 Metadata database for object storage
- 07.18 Append-only stream layer
- 07.19 Durability and replication
- 07.20 End-to-end checksums
Module 08 · Async work and streams
- 08.01 Delegation and async work
- 08.02 Task queue vs event stream
- 08.03 Event bus for product events
- 08.04 Queue lag
- 08.05 Distributed task scheduler
- 08.06 Postgres SKIP LOCKED work queue
- 08.07 DAG workflow orchestration
- 08.08 Rule engine and trigger framework
- 08.09 Fanout patterns
- 08.10 Flash sale inventory locking
Module 09 · Search and retrieval
- 09.01 Information retrieval system design
- 09.02 Inverted index and posting lists · with code
- 09.03 Boolean and tiered search
- 09.04 TF-IDF relevance scoring
- 09.05 BM25 production ranking
- 09.06 Stop words and champion lists
- 09.07 Query understanding pipeline
- 09.08 Search feedback and relevance signals
- 09.09 Search evaluation metrics
- 09.10 Search index synchronization
- 09.11 Search index sharding
- 09.12 Crawler and indexing pipeline
- 09.13 Vector search and hybrid retrieval
- 09.14 autocomplete · A design walkthrough you can build from.
- 09.15 did-you-mean and spell correction · A design walkthrough you can build from.
- 09.16 related searches · A design walkthrough you can build from.
- 09.17 recent searches · A design walkthrough you can build from.
Module 10 · Analytics and sketches
- 10.01 Counting at scale
- 10.02 View counting at scale
- 10.03 Impression counting
- 10.04 HyperLogLog cardinality estimation
- 10.05 Mergeable sketches for analytics
- 10.06 Bucketed time-window aggregation
- 10.07 Raw events vs derived analytics
- 10.08 Count-min sketch
- 10.09 Top-k heavy hitters
- 10.10 Reservoir sampling
- 10.11 t-digest quantile sketch
- 10.12 Streaming percentile analytics
- 10.13 live reactions at high throughput · A design walkthrough you can build from.
Module 12 · Geo, matching and recs
- 12.01 Nearby geospatial search
- 12.02 Geohash prefix spatial index
- 12.03 Grid systems: H3, S2, geohash
- 12.04 Redis GEO hot path
- 12.05 Geofencing: point in polygon
- 12.06 Ray casting point in polygon
- 12.07 Seen filtering: Bloom vs exact sets
- 12.08 Matching and recommendation algorithms
Module 13 · Media, files and CDN
- 13.01 Direct-to-object-storage upload
- 13.02 Image CDN and resizing
- 13.03 An avatar service
- 13.04 Video upload: signed URLs and multipart
- 13.05 Video transcoding pipeline
- 13.06 Adaptive bitrate and the CDN decider
- 13.07 Signed URLs, DRM, and video security
- 13.08 Live streaming, WebRTC, and latency
- 13.09 Remote file sync design
- 13.10 Fixed-block chunking and content addressing
- 13.11 Blocklist versioned file metadata
Module 14 · Reliability and operations
- 14.01 Observability for distributed systems
- 14.02 SLOs and error budgets
- 14.03 Incident response
- 14.04 Deployment and migration safety
- 14.05 Database migration safety
- 14.06 Parallel monolith read drain
- 14.07 Backups and restore
- 14.08 Disaster recovery
- 14.09 Data retention, deletion, and privacy
- 14.10 Security and abuse prevention
- 14.11 Rate limiter placement and keys
- 14.12 Sliding window rate limiter · with code
- 14.13 Multi-tenant design
Module 15 · Service and data designs
- 15.01 a URL shortener, one machine · A design walkthrough you can build from.
- 15.02 rate limiting and abuse prevention · A design walkthrough you can build from.
- 15.03 a URL shortener at scale · A design walkthrough you can build from.
- 15.04 a product listing · A design walkthrough you can build from.
- 15.05 a collaborative editor · A design walkthrough you can build from.
- 15.06 an object store (S3) · A design walkthrough you can build from.
- 15.07 a Kafka-style log · A design walkthrough you can build from.
Module 16 · Product designs
- 16.01 a notification system · A design walkthrough you can build from.
- 16.02 a ticket booking system · A design walkthrough you can build from.
- 16.03 a payment system · A design walkthrough you can build from.
- 16.04 a search service · A design walkthrough you can build from.
- 16.05 a recommendation system · A design walkthrough you can build from.
- 16.06 chat and messaging · A design walkthrough you can build from.
- 16.07 a social feed · A design walkthrough you can build from.
- 16.08 nearby search · A design walkthrough you can build from.
Module 17 · Media and operations designs
- 17.01 ride matching · A design walkthrough you can build from.
- 17.02 a video platform · A design walkthrough you can build from.
- 17.03 a file sync service · A design walkthrough you can build from.
- 17.04 observability and SLOs · A design walkthrough you can build from.
- 17.05 a database migration · A design walkthrough you can build from.
- 17.06 a photo-sharing interview · A design walkthrough you can build from.
Module 18 · Engineering case studies
- 18.01 Instagram's first architecture · A company case: what they built, and what it cost them.
- 18.02 Stripe's idempotency keys · A company case: what they built, and what it cost them.
- 18.03 how Discord stores trillions of messages · A company case: what they built, and what it cost them.
- 18.04 Amazon Dynamo, the paper · A company case: what they built, and what it cost them.
- 18.05 GitLab’s database incident · A company case: what they built, and what it cost them.
Curated lessons show the depth of the course. Pro unlocks the protected notes, designs, and runnable builds. New to the vocabulary? Read how fan-out in system design works.