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.
17 write-ups
| Title | Difficulty |
|---|---|
| Design a Distributed Key-Value Store Build a Dynamo-style key-value store that spreads 100 TB across hundreds of nodes, survives machine and zone failures, and lets each read choose between fast and strongly consistent. | Hard |
| Design a Block Storage Service like EBS Give virtual machines network disks on demand, with sub-millisecond replicated writes, placement that avoids fragmentation, incremental snapshots to object storage and safe failover. | Hard |
| Design a Distributed File System Build a GFS/HDFS-style file system holding hundreds of petabytes, with chunked, rack-aware replicated data, a namespace that scales past one metadata server, and the parts of POSIX worth keeping. | Hard |
| Design a Zero-Downtime Database Migration Move a live, 2 TB database to a new store and schema with no downtime, using backfill, dual writes or a trigger changelog, shadow reads and a reversible cutover; plus merging 30 regional databases. | Hard |
| Design GitHub Host hundreds of millions of git repositories with durable replicated storage, survive CI clone storms, keep pull requests correct as branches move, and search code across all of it. | Hard |
| Cassandra What you need to know about Apache Cassandra for system design interviews, including partition and clustering keys, the token ring, the LSM write path, tunable consistency, repair and when its trade-offs fit. | |
| PostgreSQL What you need to know about PostgreSQL for system design interviews, including MVCC, the WAL, isolation levels, indexes, replication, partitioning and sharding, plus when it's the right default. | |
| Amazon Aurora What you need to know about Amazon Aurora for system design interviews, including its shared log-structured storage, 4-of-6 quorums, replicas, failover, Global Database and its write limits. | |
| CockroachDB What you need to know about CockroachDB for system design interviews, including ranges and Raft, leaseholders, write intents, parallel commits, clock uncertainty, retries and multi-region tables. | |
| Google Spanner What you need to know about Google Spanner for system design interviews, including splits and Paxos, TrueTime and commit wait, external consistency, read types and multi-region setups. | |
| MongoDB What you need to know about MongoDB for system design interviews, including the document model, embedding vs referencing, indexes, WiredTiger, replica sets, write concerns, sharding and change streams. | |
| MySQL What you need to know about MySQL for system design interviews, including InnoDB's clustered indexes, redo and undo logs, locking, binlog replication, online schema changes and sharding with Vitess. | |
| Sharding, Partitioning and Replication How to split data across machines and keep copies of it. Leader, multi-leader and leaderless replication, replication lag, range vs hash sharding, shard keys, hot spots, secondary indexes and rebalancing. | |
| 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. | |
| 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. |