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.
33 write-ups
| Title | Difficulty |
|---|---|
| Design Truecaller Show who's calling and whether it's spam before the second ring, from a crowdsourced directory of billions of numbers, with spam reports that resist abuse. | Medium |
| Elasticsearch What you need to know about Elasticsearch for system design interviews, including mappings and analyzers, Lucene segments, shards and replicas, the write and query paths, CDC sync and its limits. | |
| Geospatial Indexing How systems answer "what's near me?" quickly, covering geohashes, quadtrees, Hilbert curves and S2, Uber's H3, PostGIS and R-trees, and Redis GEO, plus how to choose one and handle moving objects. | |
| 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. | |
| ClickHouse and OLAP Databases What you need to know about ClickHouse and OLAP databases for system design interviews, including columnar storage, MergeTree, sparse indexes, rollups, sharding, and how Druid and Pinot compare. | |
| GraphQL What you need to know about GraphQL for system design interviews, including schemas and resolvers, the N+1 problem and DataLoader, pagination, caching, query cost limits, subscriptions and federation. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Real-Time Updates How to push changes to clients as they happen. Polling, long polling, SSE and WebSockets, then routing updates to the right server with pub/sub, catching up after reconnects and scaling connections. |