System design, the friendly way
How do apps keep working when millions of people use them at once? Each lesson starts with the problem, then explains the idea with diagrams you step through at your own pace, real numbers, trade-off tables and the questions interviewers ask. Practise any idea in the interactive lab.
0 of 32 lessons doneRead at your own paceStep-through diagramsNo sign-up
Handling more users
- Chapter 1When one server isn’t enoughScaling up vs scaling out, load balancers and health checks.Intermediate · High priority · 45 min
- Chapter 2CachingKeep popular answers close: hits, misses, expiry.Intermediate · High priority · 40 min
- Chapter 3CDNsCopies of your files in every city.Intermediate · High priority · 35 min
- Chapter 4Latency vs throughputFast for one person vs fast for everyone.Intermediate · High priority · 30 min
Storing data
- Chapter 5SQL vs NoSQLTables with rules vs flexible documents.Intermediate · High priority · 30 min
- Chapter 6IndexesFind one record among millions, fast.Intermediate · High priority · 40 min
- Chapter 7ReplicationCopies of the database for reads and safety.Intermediate · High priority · 50 min
- Chapter 8ShardingSplit data across machines when it won’t fit on one.Advanced · High priority · 45 min
- Chapter 9Consistency and CAPWhat happens when copies disagree.Advanced · High priority · 35 min
Talking between services
- Chapter 10APIs: REST, gRPC, WebSocketsHow programs ask each other for things.Intermediate · High priority · 35 min
- Chapter 11Message queuesDo slow work later without making users wait.Intermediate · High priority · 30 min
- Chapter 12Pub/Sub and eventsOne message, many listeners.Advanced · High priority · 35 min
- Chapter 13Rate limitingStop one user from flooding everyone.Intermediate · High priority · 55 min
Staying up
- Chapter 14Redundancy and failoverNo single point of failure.Intermediate · High priority · 40 min
- Chapter 15Circuit breakers and retriesFail fast instead of piling on.Intermediate · High priority · 50 min
- Chapter 16Monitoring and alertsKnow it’s broken before users tell you.Intermediate · Medium priority · 35 min
Architecture
Design it yourself
- Chapter 20Design a URL shortenerRead-heavy, simple, and a great first design.Beginner · High priority · 50 min
- Chapter 21Design a chat appReal-time messages for millions.Intermediate · High priority · 40 min
- Chapter 22Design a news feedFan-out, ranking and caching together.Intermediate · High priority · 45 min
- Chapter 23Design a video platformUploads, encoding and streaming.Intermediate · High priority · 40 min
- Chapter 24Design a ride-hailing appLive locations and matching.Intermediate · High priority · 40 min
Technology deep dives
- Chapter 25RedisHow Redis works and when to use it: data structures, single-threaded atomicity, persistence, replication, Sentinel, Cluster hash slots, eviction and the pitfalls.Advanced · High priority · 45 min
- Chapter 26KafkaHow Apache Kafka works: the partitioned log, offsets, consumer groups, replication and ISR, acks, ordering, retention and compaction, exactly-once and KRaft.Advanced · High priority · 40 min
- Chapter 27CassandraHow Apache Cassandra works: partition and clustering keys, query-first modelling, the token ring, tunable consistency, LSM storage, tombstones and when not to use it.Advanced · Medium priority · 40 min
- Chapter 28PostgreSQLHow PostgreSQL works: MVCC and vacuum, B-tree, GIN and BRIN indexes, isolation levels and their anomalies, replication, pooling, partitioning, JSONB and scaling.Advanced · High priority · 40 min
- Chapter 29ElasticsearchHow Elasticsearch works: inverted index and analyzers, shards and replicas, near-real-time refresh, BM25, aggregations, syncing from your database, and its limits.Advanced · Medium priority · 40 min
- Chapter 30Object storage (S3)How Amazon S3 and similar stores work: keys and prefixes, erasure-coded durability, strong consistency, multipart uploads, presigned URLs, storage classes and pitfalls.Intermediate · High priority · 35 min
- Chapter 31ZooKeeper and etcdHow coordination services work: consensus with ZAB and Raft, leader election, locks with fencing tokens, ephemeral nodes and watches, etcd today, and why Redis locks need fencing.Advanced · Medium priority · 35 min