SYSTEM DESIGN · SERIES · BEGINNER

Zero to System Design.

The fundamentals, in order. Start here if system design is new to you. Each part builds on the last.

PARTS
34
READING TIME
~293 min
LEVEL
beginner

The path — 34 parts, in order

Every part also stands on its own.
  1. PART 01How to think like a software architectOne feature, three different minds. How a junior developer, a senior engineer and an architect each approach the same problem, and the habits that take you from one to the next.9 min read
  2. PART 02What is system design, really? A beginner's guideIt isn't memorising Kafka, Redis and Kubernetes. System design is how you turn a vague idea into a working system, by asking the right questions, choosing trade-offs on purpose and planning for failure from day one.7 min read
  3. PART 03Functional vs non-functional requirements: how to turn "make it fast" into a designRequirements are not paperwork. They are the numbers that decide your architecture. Learn the difference between functional and non-functional requirements, how to make vague words measurable, and what SLIs, SLOs and SLAs really mean.9 min read
  4. PART 04Back-of-the-envelope estimation in system design (with a cheat sheet)How many requests per second? How much storage? How many servers? Learn to answer in five minutes with simple maths, and let the numbers, not buzzwords, pick your design.6 min read
  5. PART 05Monolith vs microservices (and the modular monolith in between): how to chooseMicroservices are not an upgrade from a monolith. They are a trade. Learn what each style really is, what each one costs, and why team size matters more than traffic when you choose.9 min read
  6. PART 06Distributed systems basics: what really changes when you add a networkThe moment your system runs on more than one machine, calls can fail halfway, time stops being reliable, and "did it work?" sometimes has no answer. Here is what changes, and the handful of ideas that keep you safe.8 min read
  7. PART 07Synchronous vs asynchronous communication: 3 communication models explainedWhen one service needs another, does it wait? Does its thread wait? Does it even know who is listening? Three simple questions, three communication models, and how to pick the right one for each part of your system.10 min read
  8. PART 08REST vs gRPC vs GraphQL vs WebSockets: how to choose an API protocolFour popular ways for software to talk, each built for a different job. Learn how REST, gRPC, GraphQL and WebSockets work, where each one shines, where each one breaks, and how real systems use all four together.10 min read
  9. PART 09At-most-once vs at-least-once vs exactly-once: message delivery semantics explainedNetworks lose messages and repeat them. So every message system has to choose what goes wrong instead: lose a message, or deliver it twice. Learn the three delivery guarantees, why "exactly-once" is not what it sounds like, and how idempotency saves you.9 min read
  10. PART 10HTTP/2 multiplexing, full duplex, bidirectional streaming and QUIC explainedFive networking terms every developer hears in system design talks and interviews, explained in plain English: duplex, multiplexing, head-of-line blocking, bidirectional streaming and QUIC. Plus which protocols support what, and where each one sits: HTTP, TCP or UDP.10 min read
  11. PART 11Types of databases: SQL, key-value, document, wide-column, graph and time-series explainedThere is no best database, only the right one for a job. Learn the six main database types, what each one is good and bad at, and a simple way to choose: start with PostgreSQL and Redis, and add others only when an access pattern demands it.9 min read
  12. PART 12Data modeling explained: normalization, denormalization, OLTP vs OLAP and query-driven designPicking a database is half the job. The other half is the shape of your data. Learn when to store each fact once and when to copy it, why order history needs snapshots, how analytics data is shaped differently, and why NoSQL schemas start from your queries.8 min read
  13. PART 13Vertical vs horizontal scaling for databases: partitioning, sharding and when to scale outWhen one database server runs out of room, you can buy a bigger machine or spread the data over many. Learn what each really costs, the difference between partitioning and sharding, the order most systems grow in, and what you give up the day you shard.7 min read
  14. PART 14Sharding strategies explained: hash, range, directory and consistent hashingOnce you shard, every row needs an address. Learn the four ways to decide which shard data lives on, why plain hash-mod-N hurts the day you add a shard, how consistent hashing and logical shards fix it, and how to choose a shard key you won't regret.8 min read
  15. PART 15Shard rebalancing and hotspots: moving data without downtime and taming hot keysShards never stay balanced. Data grows unevenly, one celebrity floods a single shard, a machine dies. Learn how to move data between live shards without downtime or lost writes, how to find and cool down hotspots, and why chasing perfect balance makes things worse.8 min read
  16. PART 16Database replication explained: leader-follower, multi-leader and leaderless quorumsKeep copies of your data on several machines and you survive crashes, serve users nearby and spread reads. But copies drift apart. Learn the three replication models, sync vs async, failover, write conflicts and quorums, and what each one costs.9 min read
  17. PART 17Strong vs eventual consistency: consistency models explained with examplesWhen data lives on several replicas, a read might not see the latest write. Consistency models are the promises a system makes about that. Learn strong consistency, eventual consistency and the useful ones in between (causal, read-your-writes, monotonic reads) and how to pick per feature.7 min read
  18. PART 18CAP theorem explained: consistency vs availability when the network breaksThe CAP theorem is famous and often misquoted. The idea itself is short: when the network between your servers breaks, each side must either refuse requests or risk giving wrong answers. Learn what C, A and P really mean, why 'pick 2 of 3' is misleading, CP vs AP with real examples, and the speed-vs-accuracy trade-off you face even when the network is fine.10 min read
  19. PART 19Caching explained: what a cache is, why it matters and what can go wrongA cache keeps a copy of slow-to-get data somewhere fast, so you don't fetch it again and again. Learn how a cache hit and miss work, where caches live, the one trade-off behind every cache, and the four ways a cache can hurt you.6 min read
  20. PART 20Caching strategies explained: cache-aside vs read-through vs write-through vs write-backEvery cache has to answer three questions: when does data go into it, where do writes go first, and who keeps it in step with the database? The four caching strategies are four different answers. Learn how each one works, when to use it, and the bugs that come with it.7 min read
  21. PART 21Cache eviction and invalidation explained: LRU vs LFU, TTL and the thundering herd problemA cache is small and data keeps changing. Eviction decides what to throw out when memory is full. Invalidation removes data that's no longer true. Learn LRU, LFU, FIFO and TTL, the four ways to invalidate a cache, and how to stop a thundering herd from flattening your database.8 min read
  22. PART 22Load balancing explained: algorithms, health checks and L4 vs L7 load balancersA load balancer spreads requests across many servers so no single one gets crushed, and quietly steps around the ones that break. Learn how load balancers work, round robin vs least connections, health checks, sticky sessions, Layer 4 vs Layer 7, and how load balancing fails.9 min read
  23. PART 23Traffic control explained: rate limiting vs throttling vs backpressure vs load sheddingA load balancer spreads traffic out, but it can't make more of it fit. When too many requests arrive, you need traffic control. Learn the five tools that keep a system alive under pressure: rate limiting, throttling, backpressure, load shedding and queues, and when to use each.9 min read
  24. PART 24Message queues explained: queue vs pub/sub vs stream, Kafka vs RabbitMQMessaging lets services talk without waiting for each other. Learn what a message queue is, the three messaging models (queue, pub/sub and stream), when to pick Kafka, RabbitMQ or Redis, and how to handle lost, duplicate, out-of-order and poison messages.8 min read
  25. PART 25Event-driven architecture explained: events vs commands, the outbox pattern and choreography vs orchestrationIn an event-driven system, services stop telling each other what to do and start announcing what happened. Learn events vs commands, how to design a good event, the transactional outbox pattern, choreography vs orchestration, and how to deal with duplicates, ordering and changing schemas.8 min read
  26. PART 26Event sourcing explained: how it works, snapshots, CQRS and when to use itMost databases keep only the latest state and quietly throw away how it got there. Event sourcing keeps every change as an event and builds the current state from them. Learn how event sourcing works, snapshots, CQRS projections, handling concurrency and GDPR, and when it's worth the extra complexity.8 min read
  27. PART 27Designing for failure: single points of failure, failover and graceful degradationEvery server, network and database will fail one day. Good systems are not the ones that never fail, but the ones that fail in small, safe ways. Learn how to fail fast with timeouts, find and remove single points of failure, choose active-passive or active-active failover, and degrade gracefully.9 min read
  28. PART 28Resilience patterns explained: timeouts, circuit breaker, retry with backoff and bulkheadFailures will happen. Resilience patterns decide whether they stay small. Learn the five patterns every backend uses: timeouts, the circuit breaker, retries with exponential backoff and jitter, the bulkhead, and idempotency, and how they fit together.7 min read
  29. PART 29Disaster recovery explained: RPO vs RTO, backups and multi-region DR strategiesResilience patterns handle a slow service. Disaster recovery handles losing a whole data centre, a corrupted database or a deleted table. Learn RPO and RTO, the kinds of backup, why backups and replication are not the same thing, and the four DR strategies from backup-and-restore to active-active.8 min read
  30. PART 30Observability explained: logs, metrics and traces (and how they differ from monitoring)When production breaks, you need to know what failed, where, when, why and for whom. Observability is how a system answers those questions. Learn the three pillars, logs, metrics and distributed tracing, plus correlation IDs, percentiles, the golden signals, health checks and alerts people don't ignore.9 min read
  31. PART 31Deployment strategies explained: rolling vs blue-green vs canary, and feature flagsMost outages start with a change. A good deployment strategy limits how many users a bad release can hurt and lets you undo it in seconds. Learn rolling, blue-green and canary deployments, why deploy is not the same as release, and how to change a database without downtime.8 min read
  32. PART 32Security in system design: authentication vs authorization, JWT, OAuth and common attacksSecurity isn't a feature you add at the end. Learn the CIA triad, the difference between authentication and authorization, sessions vs JWT, what OAuth 2.0 and OpenID Connect are for, the four attacks every web app must stop, and how to protect against DDoS and leaked secrets.9 min read
  33. PART 33Communication layer protocols: HTTP, gRPC, WebSocket and RSocket, and when to switchHTTP/1.1, HTTP/2, HTTP/3, WebSocket, gRPC and RSocket are all interaction protocols. They decide how two systems talk, while TCP and QUIC only move the bytes. Learn what each one adds, why REST and Protobuf are not on the list, and the simple rule for when to move off REST.15 min read
  34. PART 34RSocket explained: request-response, fire-and-forget, request-stream and channelYou've heard of WebSocket. But have you heard of RSocket? It's a protocol that gives a live connection real rules on top. Here are its four ways to talk, the frames behind each one, and how the receiver gets to say "slow down".12 min read

Comes after System Design Basics A–Z.

Next series in System Design

SYSTEM DESIGN · SERIESbeginner

System Design Basics A–Z

System design terms explained simply, one letter at a time. Short, plain-English guides to the words you hear in design reviews and interviews, from API to ZooKeeper, each with pictures and everyday examples. Read them in order or jump to any letter.

28 PARTS · ABOUT 160 MIN