SYSTEM DESIGN · SERIES · BEGINNER

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.

PARTS
28
READING TIME
~160 min
LEVEL
beginner

After this series you can

  • Explain the everyday system design terms in plain words, with an example for each.
  • Tell apart ideas that often get mixed up, such as latency and throughput, a proxy and an API gateway, or SQL and NoSQL.
  • Recognise the building blocks of a typical web system and what each one is for.
  • Follow design reviews and interview discussions without getting lost in the jargon.
WHO IT'S FOR

Developers, students and anyone preparing for system design interviews or joining design discussions at work. No distributed systems background needed.

The path — 28 parts, in order

Every part also stands on its own.
  1. A · API
    PART 01
    What is an API? A simple explanation with everyday examplesEvery app you use talks to other software through APIs. Here is what an API really is, how a request and response work, and why APIs are the front door of every system design.6 min read
  2. B · BOTTLENECK
    PART 02
    What is a bottleneck in system design? How to find and fix oneA system is only as fast as its slowest step. Here is what a bottleneck is, how to spot one with simple measurements, and why fixing it usually moves the problem somewhere else.6 min read
  3. C · CDN
    PART 03
    What is a CDN? How content delivery networks make websites fastA CDN keeps copies of your images, videos and pages on servers close to your users, so they don't wait for a trip across the world. Here is how it works, what it caches, and what it can't do.5 min read
  4. C · CIRCUIT BREAKER
    PART 04
    What is a circuit breaker in system design? Closed, open and half-open explainedWhen a service you depend on starts failing, calling it again and again only makes things worse. A circuit breaker notices the failures, stops the calls for a while, and then carefully tries again. Here is how it works, its three states, and how to tune it.6 min read
  5. D · DNS
    PART 05
    What is DNS? How domain names turn into IP addressesDNS is the internet's phone book. It turns names like kagitha.com into the numbers computers use to find each other. Here is how a lookup works, why caching makes it fast, and how big systems use DNS to route traffic.5 min read
  6. E · EVENTUAL CONSISTENCY
    PART 06
    Strong 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
  7. F · FAILOVER
    PART 07
    What is failover? Active-passive vs active-active explained simplyWhen a server dies, failover switches work to a backup so users barely notice. Here is how failover works, the two common setups, and the traps that make it harder than it looks.5 min read
  8. G · API GATEWAY
    PART 08
    What is an API gateway? A simple guide with examplesAn API gateway is the single front door to many backend services. It routes each request to the right service and handles sign-in checks, rate limits and logging in one place. Here is how it works and when you need one.5 min read
  9. H · HORIZONTAL SCALING
    PART 09
    Vertical 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
  10. I · IDEMPOTENCY
    PART 10
    What is idempotency? Why "doing it twice" must be safeNetworks fail and requests get retried, so the same request often arrives twice. Idempotency means the second time changes nothing. Here is what it means, which HTTP methods have it, and how idempotency keys stop double payments.5 min read
  11. J · JWT
    PART 11
    What is a JWT? JSON Web Tokens explained simplyA JWT is a signed pass that proves who you are, so a server can trust a request without looking you up every time. Here is what is inside one, how the signature works, and the mistakes that make JWTs unsafe.5 min read
  12. K · KEY-VALUE STORE
    PART 12
    What is a key-value store? The simplest database, explainedA key-value store saves data as pairs, a key and its value, like a giant dictionary. That simplicity makes it extremely fast and easy to scale. Here is how it works, where Redis and DynamoDB fit, and when not to use one.5 min read
  13. L · LATENCY
    PART 13
    What is latency? Response time, p99 and why averages lieLatency is how long one request takes, from asking to getting the answer. Here is where that time goes, why engineers measure p95 and p99 instead of the average, and the simple ways to cut it.5 min read
  14. M · MICROSERVICES
    PART 14
    Monolith 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
  15. N · NOSQL
    PART 15
    What is NoSQL? NoSQL vs SQL databases explained simplyNoSQL is a family of databases that don't store data in fixed tables. Here are the four main kinds, what they're good at, what you give up, and a simple way to choose between SQL and NoSQL.5 min read
  16. O · OBJECT STORAGE
    PART 16
    What is object storage? How apps store billions of photos and videosObject storage keeps files as objects in huge buckets, each with a unique key and some labels. It's cheap, nearly endless and very durable, which is why photos, videos and backups live there. Here is how it works and when to use it.5 min read
  17. P · PARTITIONING
    PART 17
    What is partitioning in system design? Horizontal vs vertical, and how it differs from shardingPartitioning means splitting a big pile of data into smaller pieces so each piece is quicker to work with. Here are the two ways to split (by rows and by columns), the common partitioning schemes, and how partitioning relates to sharding.5 min read
  18. P · PROXY
    PART 18
    What is a proxy server? Forward proxy vs reverse proxy explainedA proxy is a middleman that passes requests on your behalf. A forward proxy speaks for the clients; a reverse proxy speaks for the servers. Here is the difference, what each is used for, and where NGINX fits.5 min read
  19. Q · QUEUE
    PART 19
    What is a message queue? How queues decouple servicesA message queue lets one part of a system drop off work and move on, while another part picks it up when it's ready. Here is how producers, consumers and acknowledgements work, and why queues make systems calmer under load.5 min read
  20. R · REPLICATION
    PART 20
    Database 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
  21. S · SHARDING
    PART 21
    Sharding 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
  22. T · THROUGHPUT
    PART 22
    What is throughput? RPS, QPS and how much a system can handleThroughput is how much work a system finishes per second. Here is how it's measured (RPS, QPS, MB/s), how it relates to latency, why systems slow down sharply near their limit, and the main ways to raise it.5 min read
  23. U · UPTIME
    PART 23
    What is uptime? Availability, the nines, and SLA vs SLO vs SLI99.9% uptime sounds perfect, but it still allows almost nine hours of downtime a year. Here is what uptime and availability mean, how the 'nines' translate into real minutes, and how SLIs, SLOs, SLAs and error budgets fit together.6 min read
  24. V · VERSIONING
    PART 24
    What is API versioning? How to change an API without breaking appsOnce apps depend on your API, changing it can break them overnight. API versioning lets old and new clients live side by side. Here is what counts as a breaking change, the common ways to version, and how to retire an old version politely.5 min read
  25. W · WEBHOOK
    PART 25
    What is a webhook? Webhooks vs polling explained simplyA webhook is a reverse API call: instead of you asking 'has anything happened yet?', the other system calls you the moment it does. Here is how webhooks work, why they beat polling, and how to receive them safely.5 min read
  26. X · X-AXIS SCALING
    PART 26
    What is X-axis scaling? The scale cube explained simplyThe scale cube gives three ways to grow a system. The X axis clones the whole app, the Y axis splits it by function, and the Z axis splits it by customer or data. Here is what each axis means and when to reach for it.5 min read
  27. Y · YAGNI
    PART 27
    What is YAGNI? "You aren't gonna need it" in system designYAGNI is a simple rule from software engineering: don't build things until you actually need them. Here is where it comes from, why over-engineering is so tempting in system design, and the few decisions you should still plan ahead for.5 min read
  28. Z · ZOOKEEPER
    PART 28
    What is ZooKeeper? Coordination, leader election and config explained simplyWhen many servers must agree on who's in charge, who's alive and what the settings are, they need a trusted referee. Apache ZooKeeper is that referee. Here is what it does, how leader election works, and where etcd fits today.6 min read

Where to go next

SYSTEM DESIGN · SERIESbeginner

Zero to System Design

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

34 PARTS · ABOUT 293 MIN