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 Google Drive Store files of any size, keep them in sync across every device a user owns, share them with others, keep old versions, and avoid storing the same bytes twice. | Medium |
| Design a Blob Store like S3 Store 100 PB of objects with eleven nines of durability, split into a strongly consistent metadata layer and an erasure-coded data layer, with multipart uploads and pre-signed URLs. | 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 Distributed Logging System Collect close to a petabyte of logs a day from every service, make them searchable within seconds, alert on log patterns and keep tamper-evident audit logs for years. | Hard |
| Design a Quota Management Service One storage quota shared by several products, like 15 GB across Drive, Photos and Gmail, checked on every upload and kept accurate as files come and go. | Medium |
| Design a Time Series Database Build a Prometheus-compatible time series database that ingests millions of samples a second, compresses them to about a byte and a half each, and keeps years of history with retention and downsampling. | 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 |
| Design Gmail Send and receive email with the rest of the internet over SMTP, store billions of mailboxes with attachments, organize them with labels, search them in under a second, and run a disposable inbox whose mail expires. | Medium |
| Design Steam Let developers publish 100 GB games and patches, sell them through a store that survives seasonal sales, and deliver tens of terabits per second of downloads with patches that only send what changed. | Medium |
| Amazon S3 What you need to know about Amazon S3 and object storage for system design interviews, including the data model, consistency, pre-signed URLs, multipart upload, CloudFront, storage classes and lifecycle rules. | |
| Data Warehouses What you need to know about data warehouses for system design interviews, including dimensional modeling, ELT, storage-compute separation in Snowflake, BigQuery and Redshift, and lakehouses on Iceberg and Delta. | |
| MapReduce and Hadoop What you need to know about MapReduce and the Hadoop ecosystem for system design interviews, including map, shuffle and reduce, HDFS, YARN, HBase, Hive, and what replaced them. | |
| 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. | |
| 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. | |
| 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. |