System design
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
12 write-ups
| Title | Difficulty |
|---|---|
| Design a Web Crawler Crawl ten billion pages in days without hammering any one site, crawling a URL twice or storing the same page twice, including a peer-to-peer version on 10,000 phones and crawling for LLM training data. | Hard |
| Design a Distributed Tracing System Follow one request across hundreds of services: propagate trace context, ingest OpenTelemetry spans, keep the traces that matter with tail sampling, and capture HTTP payloads safely. | Medium |
| Apache Spark What you need to know about Apache Spark for system design interviews, including DataFrames, the driver and executors, stages and shuffles, Structured Streaming, deployment modes and Spark vs Flink. | |
| gRPC What you need to know about gRPC for system design interviews, including Protocol Buffers, HTTP/2 streams, the four call types, deadlines, load balancing long-lived connections and REST trade-offs. | |
| MapReduce and Hadoop What you need to know about MapReduce and the Hadoop ecosystem for system design interviews, including map, shuffle and reduce, HDFS, YARN, HBase, Hive, and what replaced them. | |
| ZooKeeper and etcd What you need to know about ZooKeeper and etcd for system design interviews, including consensus and quorums, znodes and leases, watches, leader election, distributed locks, fencing tokens and their limits. | |
| Consistent Hashing How to spread keys over a changing set of machines without reshuffling everything. Mod-N vs the hash ring, virtual nodes, replicas, rendezvous, jump and Maglev hashing, fixed slots and bounded loads. | |
| Consensus: Raft and Paxos How a group of machines agrees on one value or one log despite crashes. Quorums, Raft's elections and log replication, Paxos, linearizable reads, leases, fencing and when to use etcd or ZooKeeper. | |
| CRDTs Data types that let replicas accept writes independently and still converge. Counters, registers, OR-sets, sequence CRDTs for text, version vectors, metadata costs and when to use CRDTs in a design. | |
| Gossip Protocols How clusters share membership and state without a central server. Epidemic spread, push vs pull, anti-entropy, heartbeats, phi accrual and SWIM failure detection, and when gossip is the wrong tool. | |
| Microservice Patterns When to split a system into services and how to wire them together. API gateways, backends for frontends, service discovery, sidecars and meshes, event-driven design, CQRS and splitting a monolith. | |
| Resilience Patterns How to keep one failing dependency from taking the whole system down. Timeouts, retries with backoff and jitter, circuit breakers, bulkheads, backpressure, load shedding and disaster recovery. |