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.
| Title | Difficulty |
|---|---|
| Design Google Docs Let dozens of people type into the same document at once, see each other's changes in milliseconds, keep working offline, and always end up with the same text. | Hard |
| Design Online Chess Pair players by rating, relay moves in milliseconds with fair server-side clocks, survive server crashes mid-game, and keep ratings and leaderboards correct. | Medium |
| Design Robinhood Design a retail brokerage app that streams live prices for 7,000 tickers to millions of users, draws historical charts, routes orders to the market and survives a crash-day stampede. | Hard |
| Design Splitwise Design an expense-sharing app where groups log shared costs with flexible splits, see who owes whom at a glance, and settle up with the fewest payments. | Medium |
| Design Venmo Design a peer-to-peer payments app like Venmo, Cash App or Zelle with instant transfers, requests, scheduled payments and a social feed, built on event sourcing. | 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. | |
| DynamoDB What you need to know about DynamoDB for system design interviews, including partition and sort keys, single-table design, GSIs and LSIs, capacity and hot partitions, consistency, transactions and Streams. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Caching Strategies Where to cache, how to read and write through a cache, eviction, invalidation and its race conditions, and the failure modes that matter at scale: stampedes, penetration, avalanches and hot keys. | |
| Data Modeling for System Design How to design the data model in an interview. Entities and access patterns, relational schemas and indexes, denormalization, partition and sort keys, embedding vs referencing, IDs and schema changes. | |
| Change Data Capture How to keep search indexes, caches, warehouses and other services in sync with a database by reading its log. Polling vs triggers vs log-based CDC, Debezium, ordering, snapshots and pitfalls. | |
| Choosing a Database How to pick the right database in an interview. Relational, key-value, wide-column, document, search, time-series, graph, columnar and object storage, with the access-pattern questions that decide between them. | |
| 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. | |
| 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". |