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.
34 write-ups
| 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 Instagram Stories Build the story tray, play stories in order, track who has seen what, and make every story vanish 24 hours after it was posted. | Medium |
| Design Shopify A multi-tenant store builder for millions of merchants, covering tenant isolation in pods, Salesforce-style custom fields, custom domains with automatic HTTPS, and one store's flash sale. | 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. | |
| Kafka What you need to know about Apache Kafka for system design interviews, including topics and partitions, consumer groups, replication and the ISR, delivery guarantees, retention and compaction, and scaling. | |
| Amazon Kinesis What you need to know about Amazon Kinesis for system design interviews, including shards and their limits, partition keys, consumers and enhanced fan-out, the KCL, resharding, Firehose, and Kinesis vs Kafka. | |
| Apache Pulsar What you need to know about Apache Pulsar for system design interviews, including stateless brokers over BookKeeper, segments, subscription types, multi-tenancy, geo-replication and tiered storage, vs Kafka. | |
| 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. | |
| Back-of-the-Envelope Estimation How to estimate QPS, storage, bandwidth and server counts quickly and use them to make design choices. Time and size shortcuts, latency and throughput numbers, worked examples and common mistakes. | |
| 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. | |
| 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. | |
| 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. |