System Design

Design real-world systems, from networking and DNS basics to consensus, streaming and multi-region architecture.

Beginner

  1. What is System Design?: Planning how the parts of a software system fit together and work at scale.
  2. Client and Server: How the app you use relates to the machine that does the work behind it.
  3. HTTP: The shared language clients and servers use to talk over the web.
  4. REST APIs: A common, predictable way to design APIs so any app can talk to a server the same way.
  5. Proxy & Reverse Proxy: A middle server between a client and the real destination, working for one side or the other.
  6. Authentication & Sessions: How a server remembers who you are across requests, even though HTTP doesn't.
  7. Networking Basics: IP addresses, packets, ports, TCP vs UDP and the layers that move data between machines.
  8. DNS: How human-readable names like example.com are turned into IP addresses, and how that can steer traffic.
  9. Back-of-the-Envelope Estimation: Quick, rough math for traffic, storage and bandwidth that tells you which parts of a design will strain.
  10. Availability, SLIs, SLOs and SLAs: How to measure uptime, what 'the nines' mean, error budgets, and how dependencies multiply availability.
  11. Stateless vs Stateful Services: Why keeping app servers stateless lets you scale them freely, and where the state goes instead.
  12. Object Storage: S3-style storage for files and blobs: buckets, keys, presigned URLs, and how it compares to block and file storage.
  13. System Design Interview Framework: A step-by-step approach for a 45–60 minute design interview, and the pitfalls that sink candidates.

Intermediate

  1. Databases: Where an app's data lives safely between requests.
  2. SQL vs NoSQL: Two ways to organize and store data, each suited to different problems.
  3. Caching: Keep a copy of often-needed data somewhere fast, so you don't redo expensive work.
  4. Database Replication: Keep several copies of a database in sync, so no single database is a point of failure.
  5. Database Sharding: Split one huge dataset across several databases, so no single database holds all of it.
  6. Consistency Models: How quickly and how strictly every copy of your data must agree.
  7. Rate Limiting: Cap how many requests a client can make in a set time window.
  8. Microservices vs Monolith: Two ways to structure and deploy an app: as one unit, or as many independent pieces.
  9. Publish/Subscribe (Pub/Sub): Broadcast one event to many listeners, without the sender knowing who they are.
  10. REST vs GraphQL vs gRPC: Three common API styles, what each optimizes for, and when each fits.
  11. Realtime Communication Patterns: Short polling, long polling, SSE, WebSockets and webhooks: how servers push updates.
  12. Cache Eviction, Write Policies and Invalidation: How caches decide what to drop, how writes reach them, and how to keep them fresh.
  13. Message Delivery Semantics: At-most-once, at-least-once and effectively-once delivery, and how to build reliable consumers.
  14. Timeouts, Retries and Backoff: How to retry failed calls safely without turning a small outage into a big one.
  15. Unique ID Generation: Generating unique IDs across many machines: UUIDs, Snowflake, ULID and ticket servers.
  16. Search and the Inverted Index: How full-text search engines find and rank documents fast, and how to keep them in sync.
  17. Service Discovery: How services find healthy instances of each other when IPs change constantly.
  18. Deployment Strategies: Rolling, blue-green, canary, feature flags and safe database migrations.
  19. Security in System Design: Authentication, authorization, OAuth/OIDC, JWTs, TLS, encryption, secrets and common attacks.
  20. Change Data Capture (CDC): Stream every insert, update and delete out of a database into search indexes, caches, warehouses and queues.
  21. Transactional Outbox and Inbox: Publish events reliably by saving them in the same transaction as your data, and dedupe them on the consumer side.

Advanced

  1. Load Balancing: Spreading requests across several servers so no single one gets overwhelmed.
  2. Queues: Handing off work to be done later, without waiting for it.
  3. CDN: Servers around the world that deliver content from the location closest to each user.
  4. Scalability: A system's ability to keep working well as usage grows: more users, data, and requests.
  5. CAP Theorem: A distributed system can't fully guarantee both consistency and availability during a network failure.
  6. Consistent Hashing: A hashing technique that keeps most data in place when servers are added or removed.
  7. API Gateway: One entry point in front of many backend services that handles shared concerns for all of them.
  8. WebSockets & Real-Time Communication: Lets a server push data to a client the moment something happens, without waiting to be asked.
  9. Circuit Breaker & Retries: Protecting a system from a failing dependency so the failure doesn't spread.
  10. Idempotency: Designing an operation so doing it more than once has the same effect as doing it once.
  11. Monitoring & Observability: Knowing what your system is doing, and why something went wrong, without guessing.
  12. Consensus and Leader Election: How a group of machines agrees on one value or one leader, even when some of them crash or the network misbehaves.
  13. Distributed Transactions: Keeping data consistent when one business operation spans several databases or services.
  14. Conflict Resolution and CRDTs: What happens when two replicas accept different writes to the same data at the same time, and how to merge them safely.
  15. Gossip and Failure Detection: How nodes in a large cluster figure out who is alive and spread information without a central coordinator.
  16. Distributed Locks and Fencing Tokens: Making sure only one process at a time does something across many machines, and staying safe when that guarantee breaks.
  17. Storage Engines: B-Trees vs LSM-Trees: How databases actually lay data out on disk, and why that choice decides whether they're better at reads or writes.
  18. Event Streaming and Log-Based Brokers: Kafka-style brokers that store events in an ordered, replayable log instead of deleting them once delivered.
  19. Stream and Batch Processing: Processing large datasets all at once (batch) or continuously as events arrive (stream), and the time and correctness problems each brings.
  20. Bloom Filters and Probabilistic Data Structures: Tiny, fast structures that answer 'have I seen this?' or 'how many?' approximately, trading a small, known error for huge memory savings.
  21. Geospatial Indexing: Finding things near a point fast, using geohash, quadtrees and S2/H3 cells instead of scanning every location.
  22. Hot Keys and Thundering Herd: Handling the one key everyone wants at once: hot partitions, cache stampedes, request coalescing and key splitting.
  23. Backpressure and Load Shedding: Keeping a system healthy when demand exceeds capacity: slowing producers, bounding queues, rejecting early and degrading gracefully.
  24. Multi-Region and Disaster Recovery: Surviving the loss of a data centre or a whole region: RPO/RTO, backups, active-passive vs active-active, failover, cells and game days.
  25. Data Warehouses and OLAP: Systems built for analytics over huge datasets: OLTP vs OLAP, columnar storage, ETL vs ELT, lakes, lakehouses and star schemas.
  26. Service Mesh and Sidecars: Moving retries, timeouts, mTLS and telemetry out of application code into proxies next to every service, and what that costs.