System Design
Design real-world systems, from networking and DNS basics to consensus, streaming and multi-region architecture.
Beginner
- What is System Design?: Planning how the parts of a software system fit together and work at scale.
- Client and Server: How the app you use relates to the machine that does the work behind it.
- HTTP: The shared language clients and servers use to talk over the web.
- REST APIs: A common, predictable way to design APIs so any app can talk to a server the same way.
- Proxy & Reverse Proxy: A middle server between a client and the real destination, working for one side or the other.
- Authentication & Sessions: How a server remembers who you are across requests, even though HTTP doesn't.
- Networking Basics: IP addresses, packets, ports, TCP vs UDP and the layers that move data between machines.
- DNS: How human-readable names like example.com are turned into IP addresses, and how that can steer traffic.
- Back-of-the-Envelope Estimation: Quick, rough math for traffic, storage and bandwidth that tells you which parts of a design will strain.
- Availability, SLIs, SLOs and SLAs: How to measure uptime, what 'the nines' mean, error budgets, and how dependencies multiply availability.
- Stateless vs Stateful Services: Why keeping app servers stateless lets you scale them freely, and where the state goes instead.
- Object Storage: S3-style storage for files and blobs: buckets, keys, presigned URLs, and how it compares to block and file storage.
- System Design Interview Framework: A step-by-step approach for a 45–60 minute design interview, and the pitfalls that sink candidates.
Intermediate
- Databases: Where an app's data lives safely between requests.
- SQL vs NoSQL: Two ways to organize and store data, each suited to different problems.
- Caching: Keep a copy of often-needed data somewhere fast, so you don't redo expensive work.
- Database Replication: Keep several copies of a database in sync, so no single database is a point of failure.
- Database Sharding: Split one huge dataset across several databases, so no single database holds all of it.
- Consistency Models: How quickly and how strictly every copy of your data must agree.
- Rate Limiting: Cap how many requests a client can make in a set time window.
- Microservices vs Monolith: Two ways to structure and deploy an app: as one unit, or as many independent pieces.
- Publish/Subscribe (Pub/Sub): Broadcast one event to many listeners, without the sender knowing who they are.
- REST vs GraphQL vs gRPC: Three common API styles, what each optimizes for, and when each fits.
- Realtime Communication Patterns: Short polling, long polling, SSE, WebSockets and webhooks: how servers push updates.
- Cache Eviction, Write Policies and Invalidation: How caches decide what to drop, how writes reach them, and how to keep them fresh.
- Message Delivery Semantics: At-most-once, at-least-once and effectively-once delivery, and how to build reliable consumers.
- Timeouts, Retries and Backoff: How to retry failed calls safely without turning a small outage into a big one.
- Unique ID Generation: Generating unique IDs across many machines: UUIDs, Snowflake, ULID and ticket servers.
- Search and the Inverted Index: How full-text search engines find and rank documents fast, and how to keep them in sync.
- Service Discovery: How services find healthy instances of each other when IPs change constantly.
- Deployment Strategies: Rolling, blue-green, canary, feature flags and safe database migrations.
- Security in System Design: Authentication, authorization, OAuth/OIDC, JWTs, TLS, encryption, secrets and common attacks.
- Change Data Capture (CDC): Stream every insert, update and delete out of a database into search indexes, caches, warehouses and queues.
- 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
- Load Balancing: Spreading requests across several servers so no single one gets overwhelmed.
- Queues: Handing off work to be done later, without waiting for it.
- CDN: Servers around the world that deliver content from the location closest to each user.
- Scalability: A system's ability to keep working well as usage grows: more users, data, and requests.
- CAP Theorem: A distributed system can't fully guarantee both consistency and availability during a network failure.
- Consistent Hashing: A hashing technique that keeps most data in place when servers are added or removed.
- API Gateway: One entry point in front of many backend services that handles shared concerns for all of them.
- WebSockets & Real-Time Communication: Lets a server push data to a client the moment something happens, without waiting to be asked.
- Circuit Breaker & Retries: Protecting a system from a failing dependency so the failure doesn't spread.
- Idempotency: Designing an operation so doing it more than once has the same effect as doing it once.
- Monitoring & Observability: Knowing what your system is doing, and why something went wrong, without guessing.
- 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.
- Distributed Transactions: Keeping data consistent when one business operation spans several databases or services.
- 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.
- Gossip and Failure Detection: How nodes in a large cluster figure out who is alive and spread information without a central coordinator.
- 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.
- 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.
- Event Streaming and Log-Based Brokers: Kafka-style brokers that store events in an ordered, replayable log instead of deleting them once delivered.
- 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.
- 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.
- Geospatial Indexing: Finding things near a point fast, using geohash, quadtrees and S2/H3 cells instead of scanning every location.
- Hot Keys and Thundering Herd: Handling the one key everyone wants at once: hot partitions, cache stampedes, request coalescing and key splitting.
- Backpressure and Load Shedding: Keeping a system healthy when demand exceeds capacity: slowing producers, bounding queues, rejecting early and degrading gracefully.
- 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.
- Data Warehouses and OLAP: Systems built for analytics over huge datasets: OLTP vs OLAP, columnar storage, ETL vs ELT, lakes, lakehouses and star schemas.
- Service Mesh and Sidecars: Moving retries, timeouts, mTLS and telemetry out of application code into proxies next to every service, and what that costs.