Learn system design from first principles.

Curriculum structure

  1. 01 Foundations · 13 lessons
  2. 02 APIs, services and protocols · 13 lessons
  3. 03 Data modeling and SQL · 13 lessons
  4. 04 NoSQL, partitioning and IDs · 14 lessons
  5. 05 Caching and fast reads · 6 lessons
  6. 06 Distributed coordination · 13 lessons
  7. 07 Storage engines · 20 lessons
  8. 08 Async work and streams · 10 lessons
  9. 09 Search and retrieval · 17 lessons
  10. 10 Analytics and sketches · 13 lessons
  11. 11 Realtime, social and feeds · 10 lessons
  12. 12 Geo, matching and recs · 8 lessons
  13. 13 Media, files and CDN · 11 lessons
  14. 14 Reliability and operations · 13 lessons
  15. 15 Service and data designs · 7 lessons
  16. 16 Product designs · 8 lessons
  17. 17 Media and operations designs · 6 lessons
  18. 18 Engineering case studies · 5 lessons

Full curriculum

Module 01 · Foundations

  1. 01.01 Requirements clarification
  2. 01.02 Logical system design
  3. 01.03 Non-functional requirements
  4. 01.04 System design tradeoffs
  5. 01.05 Availability, durability, consistency, cost
  6. 01.06 Back-of-the-envelope capacity planning
  7. 01.07 How a server handles many requests
  8. 01.08 Horizontal vs vertical scaling
  9. 01.09 Monolith vs microservices
  10. 01.10 Repository pattern
  11. 01.11 Extensible data modeling
  12. 01.12 Cost-aware architecture
  13. 01.13 When not to add infrastructure

Module 02 · APIs, services and protocols

  1. 02.01 API design contracts
  2. 02.02 Service-to-service communication
  3. 02.03 HTTP, REST, and gRPC
  4. 02.04 TCP vs UDP
  5. 02.05 API gateway vs load balancer
  6. 02.06 Load balancers · with code
  7. 02.07 Consistent-hashing load balancing
  8. 02.08 Event contracts
  9. 02.09 Retries, timeouts, and idempotency
  10. 02.10 Batching
  11. 02.11 Backpressure
  12. 02.12 Tail latency
  13. 02.13 Load shedding

Module 03 · Data modeling and SQL

  1. 03.01 Relational database design
  2. 03.02 a key-value store on SQL · A design walkthrough you can build from.
  3. 03.03 Database indexing
  4. 03.04 B-tree
  5. 03.05 Query planning
  6. 03.06 Database locking and isolation
  7. 03.07 MVCC
  8. 03.08 Database WAL and recovery · with code
  9. 03.09 Database ticket servers
  10. 03.10 Relational database scaling
  11. 03.11 Online indexing
  12. 03.12 Schema evolution
  13. 03.13 Soft delete

Module 04 · NoSQL, partitioning and IDs

  1. 04.01 NoSQL decision boundaries
  2. 04.02 Document vs key-value stores
  3. 04.03 Columnar vs wide-column stores
  4. 04.04 Graph database decision boundary
  5. 04.05 Sharding and partitioning
  6. 04.06 Hot partitions
  7. 04.07 Consistent hashing · with code
  8. 04.08 Distributed ID generation
  9. 04.09 UUID, ObjectId, and Snowflake
  10. 04.10 Snowflake ID design · with code
  11. 04.11 Clock skew and ID ordering
  12. 04.12 Keyset pagination · with code
  13. 04.13 Bloom filters · with code
  14. 04.14 Hot and cold storage, archival

Module 05 · Caching and fast reads

  1. 05.01 Caching layers
  2. 05.02 Distributed cache design
  3. 05.03 Cache eviction policies · with code
  4. 05.04 TTL expiration and cache reapers · with code
  5. 05.05 Cache concurrency control
  6. 05.06 Cache availability and database fallback

Module 06 · Distributed coordination

  1. 06.01 Distributed systems foundations
  2. 06.02 Consistency models
  3. 06.03 Replication
  4. 06.04 CAP and PACELC
  5. 06.05 Clocks and ordering
  6. 06.06 Consensus
  7. 06.07 Leader election · with code
  8. 06.08 Distributed locks and leases
  9. 06.09 Redis Redlock and fencing tokens
  10. 06.10 Circuit breakers and timeouts
  11. 06.11 Gossip protocol · with code
  12. 06.12 Metadata service and node discovery
  13. 06.13 Distributed hash tables

Module 07 · Storage engines

  1. 07.01 Storage engine design constraints
  2. 07.02 Storage engine tradeoffs
  3. 07.03 A file-backed dictionary
  4. 07.04 Custom binary file format
  5. 07.05 Byte-range indexed object storage
  6. 07.06 Immutable versioned data files
  7. 07.07 Log-structured storage
  8. 07.08 Bitcask storage engine
  9. 07.09 LSM-tree storage engine
  10. 07.10 Memtable, WAL, and SSTable
  11. 07.11 LSM read path: Bloom filters and sparse index
  12. 07.12 Compaction and amplification
  13. 07.13 Object storage vs database
  14. 07.14 S3 object storage architecture
  15. 07.15 Range partitioning vs consistent hashing for storage
  16. 07.16 Partition manager and map table
  17. 07.17 Metadata database for object storage
  18. 07.18 Append-only stream layer
  19. 07.19 Durability and replication
  20. 07.20 End-to-end checksums

Module 08 · Async work and streams

  1. 08.01 Delegation and async work
  2. 08.02 Task queue vs event stream
  3. 08.03 Event bus for product events
  4. 08.04 Queue lag
  5. 08.05 Distributed task scheduler
  6. 08.06 Postgres SKIP LOCKED work queue
  7. 08.07 DAG workflow orchestration
  8. 08.08 Rule engine and trigger framework
  9. 08.09 Fanout patterns
  10. 08.10 Flash sale inventory locking

Module 09 · Search and retrieval

  1. 09.01 Information retrieval system design
  2. 09.02 Inverted index and posting lists · with code
  3. 09.03 Boolean and tiered search
  4. 09.04 TF-IDF relevance scoring
  5. 09.05 BM25 production ranking
  6. 09.06 Stop words and champion lists
  7. 09.07 Query understanding pipeline
  8. 09.08 Search feedback and relevance signals
  9. 09.09 Search evaluation metrics
  10. 09.10 Search index synchronization
  11. 09.11 Search index sharding
  12. 09.12 Crawler and indexing pipeline
  13. 09.13 Vector search and hybrid retrieval
  14. 09.14 autocomplete · A design walkthrough you can build from.
  15. 09.15 did-you-mean and spell correction · A design walkthrough you can build from.
  16. 09.16 related searches · A design walkthrough you can build from.
  17. 09.17 recent searches · A design walkthrough you can build from.

Module 10 · Analytics and sketches

  1. 10.01 Counting at scale
  2. 10.02 View counting at scale
  3. 10.03 Impression counting
  4. 10.04 HyperLogLog cardinality estimation
  5. 10.05 Mergeable sketches for analytics
  6. 10.06 Bucketed time-window aggregation
  7. 10.07 Raw events vs derived analytics
  8. 10.08 Count-min sketch
  9. 10.09 Top-k heavy hitters
  10. 10.10 Reservoir sampling
  11. 10.11 t-digest quantile sketch
  12. 10.12 Streaming percentile analytics
  13. 10.13 live reactions at high throughput · A design walkthrough you can build from.

Module 11 · Realtime, social and feeds

  1. 11.01 Realtime database and WebSocket scaling
  2. 11.02 WebSockets vs SSE vs long polling
  3. 11.03 Social network database modeling
  4. 11.04 Social graph: follows and FlockDB
  5. 11.05 Feed generation: push, pull, hybrid
  6. 11.06 a newly-unread indicator · A design walkthrough you can build from.
  7. 11.07 Hashtag extraction and tag store
  8. 11.08 Reaction modeling
  9. 11.09 photo tagging coordinates · A design walkthrough you can build from.
  10. 11.10 live commentary · A design walkthrough you can build from.

Module 12 · Geo, matching and recs

  1. 12.01 Nearby geospatial search
  2. 12.02 Geohash prefix spatial index
  3. 12.03 Grid systems: H3, S2, geohash
  4. 12.04 Redis GEO hot path
  5. 12.05 Geofencing: point in polygon
  6. 12.06 Ray casting point in polygon
  7. 12.07 Seen filtering: Bloom vs exact sets
  8. 12.08 Matching and recommendation algorithms

Module 13 · Media, files and CDN

  1. 13.01 Direct-to-object-storage upload
  2. 13.02 Image CDN and resizing
  3. 13.03 An avatar service
  4. 13.04 Video upload: signed URLs and multipart
  5. 13.05 Video transcoding pipeline
  6. 13.06 Adaptive bitrate and the CDN decider
  7. 13.07 Signed URLs, DRM, and video security
  8. 13.08 Live streaming, WebRTC, and latency
  9. 13.09 Remote file sync design
  10. 13.10 Fixed-block chunking and content addressing
  11. 13.11 Blocklist versioned file metadata

Module 14 · Reliability and operations

  1. 14.01 Observability for distributed systems
  2. 14.02 SLOs and error budgets
  3. 14.03 Incident response
  4. 14.04 Deployment and migration safety
  5. 14.05 Database migration safety
  6. 14.06 Parallel monolith read drain
  7. 14.07 Backups and restore
  8. 14.08 Disaster recovery
  9. 14.09 Data retention, deletion, and privacy
  10. 14.10 Security and abuse prevention
  11. 14.11 Rate limiter placement and keys
  12. 14.12 Sliding window rate limiter · with code
  13. 14.13 Multi-tenant design

Module 15 · Service and data designs

  1. 15.01 a URL shortener, one machine · A design walkthrough you can build from.
  2. 15.02 rate limiting and abuse prevention · A design walkthrough you can build from.
  3. 15.03 a URL shortener at scale · A design walkthrough you can build from.
  4. 15.04 a product listing · A design walkthrough you can build from.
  5. 15.05 a collaborative editor · A design walkthrough you can build from.
  6. 15.06 an object store (S3) · A design walkthrough you can build from.
  7. 15.07 a Kafka-style log · A design walkthrough you can build from.

Module 16 · Product designs

  1. 16.01 a notification system · A design walkthrough you can build from.
  2. 16.02 a ticket booking system · A design walkthrough you can build from.
  3. 16.03 a payment system · A design walkthrough you can build from.
  4. 16.04 a search service · A design walkthrough you can build from.
  5. 16.05 a recommendation system · A design walkthrough you can build from.
  6. 16.06 chat and messaging · A design walkthrough you can build from.
  7. 16.07 a social feed · A design walkthrough you can build from.
  8. 16.08 nearby search · A design walkthrough you can build from.

Module 17 · Media and operations designs

  1. 17.01 ride matching · A design walkthrough you can build from.
  2. 17.02 a video platform · A design walkthrough you can build from.
  3. 17.03 a file sync service · A design walkthrough you can build from.
  4. 17.04 observability and SLOs · A design walkthrough you can build from.
  5. 17.05 a database migration · A design walkthrough you can build from.
  6. 17.06 a photo-sharing interview · A design walkthrough you can build from.

Module 18 · Engineering case studies

  1. 18.01 Instagram's first architecture · A company case: what they built, and what it cost them.
  2. 18.02 Stripe's idempotency keys · A company case: what they built, and what it cost them.
  3. 18.03 how Discord stores trillions of messages · A company case: what they built, and what it cost them.
  4. 18.04 Amazon Dynamo, the paper · A company case: what they built, and what it cost them.
  5. 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.

Read a free lesson