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.
30 write-ups
| Title | Difficulty |
|---|---|
| Amazon SQS and SNS What you need to know about Amazon SQS and SNS for system design interviews, including visibility timeouts, standard vs FIFO queues, dead-letter queues, SNS fan-out and filtering, and when to pick them over Kafka. | |
| Apache Flink What you need to know about Apache Flink for system design interviews, including the dataflow model, keyed state, event time and watermarks, windows, checkpoints and exactly-once, scaling, and Flink vs Spark. | |
| AWS Lambda What you need to know about AWS Lambda for system design interviews, including the execution model, invocation types, cold starts, concurrency and scaling, pricing, retries and when serverless fits. | |
| RabbitMQ What you need to know about RabbitMQ for system design interviews, including exchanges and routing, acknowledgements and prefetch, dead-lettering, quorum queues and streams, and how it differs from Kafka. | |
| 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. | |
| 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. | |
| 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. | |
| Idempotency and Deduplication Why duplicates are unavoidable in distributed systems and how to make them harmless. Naturally idempotent writes, idempotency keys, consumer dedupe, Kafka and SQS guarantees, and "exactly once". | |
| Multi-Region Architecture How to run one system in several regions. Latency physics, active-passive vs active-active, home regions and geo-partitioning, cross-region replication, global routing, failover, RPO/RTO and data residency. | |
| 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. |