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.
28 write-ups
| Title | Difficulty |
|---|---|
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Storage Engines and Indexes How databases lay data out on disk. Append-only logs, B-trees, LSM trees and compaction, Bloom filters, secondary and composite indexes, and row vs column storage, with the trade-offs that decide which to use. | |
| Transactions, from One Database to Many Services How transactions really work. Rollback in a simple key-value store, write-ahead logs, isolation levels and their anomalies, then two-phase commit, sagas and the outbox pattern for when one database isn't enough. |