System design
How large systems are built and why, drawn by hand and explained from zero, one part at a time.
- unit I · chapter 1 · 7 partsNetworking fundamentals
DNS, transports, HTTP, encryption, proxies, connection reuse, deadlines, retries, and live delivery, explained through one score request.
- unit II · chapter 2 · 7 partsPerformance and capacity estimation
Latency, tail distributions, bandwidth, IOPS, concurrency, queueing, bottlenecks, scaling, and overload with computed capacity budgets.
- unit III · chapter 3 · 8 partsRelational databases
Records, indexes, query plans, joins, transactions, isolation, MVCC, locks, recovery, replication, and sharding through a score write.
- unit IV · chapter 4 · 7 partsNoSQL databases
Key-value, document, wide-column, and graph models through access patterns, copied facts, indexes, partition keys, and consistency.
- unit V · chapter 5 · 8 partsDistributed systems fundamentals
CAP, observable consistency, replication, quorums, failover, locks, leases, fencing, Raft, and coordination through explicit failure histories.
- unit VI · chapter 6 · 8 partsCaching
Cache placement, read and write patterns, freshness races, eviction, correlated misses, hot keys, and failure-safe fallback.
- unit VII · chapter 7 · 8 partsLoad balancing and traffic routing
DNS, CDN and edge, reverse proxies, API gateways, L4 and L7 load balancers, balancing algorithms, consistent hashing, sticky sessions, health checks, failover and service discovery.
- unit VIII · chapter 8 · 7 partsMessage queues and async processing
Message queues, pub/sub, event streams, consumer groups, partitions, offsets, acknowledgements, retries, dead-letter queues, delivery semantics, backpressure and the transactional outbox.
- unit IX · chapter 9 · 9 partsApache Kafka
Inside the retained log.
- unit X · chapter 10 · 7 partsAPI design and microservices
Resources, pages, validation, identity, quotas, versioned commands, and service boundaries, followed through concurrent updates and distributed workflows.
- unit XI · chapter 11 · 8 partsReliability and fault tolerance
Fault tolerance, redundancy, graceful degradation, bounded retries, circuit breakers, safe failover, and disaster recovery through Heron.
- unit XII · chapter 12 · 8 partsRate limiting
Fixed windows, sliding logs and counters, token buckets, leaky buckets, and distributed atomic admission through Heron.
- unit XIII · chapter 13 · 8 partsStorage systems
Local, block, file, object, database, and distributed storage, followed through a verified direct multipart upload and its recovery.
- unit 14 · chapter 14 · 8 partsCDN and content delivery
Edge locations, origins, hits, freshness, invalidation, pull and push placement, signed access, and geographic content delivery through Heron.
- unit 15 · chapter 15 · 9 partsSearch systems
Inverted indexes, analysis, posting lists, TF-IDF, BM25, indexing pipelines, shards, replicas, autocomplete, prefixes, and spelling tolerance.
- unit 16 · chapter 16 · 9 partsReal-time systems
Polling, long polling, SSE, WebSockets, connection management, heartbeats, presence, pub/sub, fan-out, reconnect, and recovery.
- unit 17 · chapter 17 · 9 partsData pipelines
OLTP and OLAP, batch and stream processing, ETL and ELT, warehouses, lakes, CDC, event streams, materialized views, and Spark/Flink architecture.
- unit 18 · chapter 18 · 9 partsSecurity
Authentication, authorization, sessions, JWT, OAuth, cookies, API keys, RBAC, ACLs, encryption, TLS, secrets, password hashing, signed URLs, CORS, CSRF, and abuse controls.
- unit 19 · chapter 19 · 9 partsObservability and monitoring
Seeing the production system.
- unit 20 · chapter 20 · 9 partsScaling patterns
Patterns that change the work.
- unit 21 · chapter 21 · 9 partsThe system design interview
Defending the complete design.
- unit 22 · chapter 22 · 9 partsPractice system designs
Twenty systems, actual mechanisms.