Skip to content

Mastering System Design

Case studies and advanced architecture for readers who know the basic systems mechanisms.

In development. The blueprint chapters are drafts in editorial review. They are not yet a released case-study sequence.

Browse the chapters →

Browse the chapters

69 draft chapters in 10 parts. Open a part to see chapter summaries and read the existing material. Draft status describes editorial readiness; the chapters themselves remain available.

Part 1 · Foundations5 chapters
01

Back-of-Envelope Capacity Estimation

Turn daily users and actions into peak request rate, memory demand and retention estimates; keep assumptions visible.

Draft · editorial review pending

03

Load Balancing & API Gateways

Choose routing and health-check behavior; distinguish transport balancing from application-aware gateways.

Draft · editorial review pending

Part 2 · Data & scale5 chapters
09

Database Sharding & Consistent Hashing

Choose partition keys and plan data movement, verification and cutover when ownership changes.

Draft · editorial review pending

Part 3 · Reliability patterns6 chapters
12

Idempotency Keys & Distributed Retries

Give repeated operations stable identities and resolve ambiguous outcomes without repeating effects.

Draft · editorial review pending

13

Monolith vs. Microservices Architecture

Compare a modular monolith with service boundaries, deployment independence and migration costs.

Draft · editorial review pending

Part 4 · Coordination6 chapters
19

Event Sourcing & CQRS Architecture

Separate an authoritative event history from query projections and plan schema evolution.

Draft · editorial review pending

Part 5 · Classic case studies I8 chapters
23

URL Shortener Architecture

Design short-code allocation, redirects, withdrawal and analytics without confusing their authority.

Draft · editorial review pending

24

Real-Time Distributed Chat System

Separate durable message acceptance, live delivery, ordering and reconnect catch-up.

Draft · editorial review pending

25

Distributed News Feed Architecture

Compare feed fan-out on write and read under uneven publisher popularity.

Draft · editorial review pending

26

High-Throughput Ledger & Payment Gateway

Trace authorization, capture, ledger entries and reconciliation after an uncertain provider response.

Draft · editorial review pending

27

Video Streaming Platform Architecture

Separate upload, processing, publication and playback with versioned media manifests.

Draft · editorial review pending

28

Search Engine & Real-Time Typeahead

Build retrieval and prefix suggestions with explicit freshness and ranking boundaries.

Draft · editorial review pending

29

Ride-Hailing & Geospatial Matching

Combine location freshness, nearby candidates and exclusive assignment for dispatch.

Draft · editorial review pending

30

Real-Time Collaborative Editing

Reason about concurrent edits, transformation or merge semantics, snapshots and presence.

Draft · editorial review pending

Part 6 · AI systems6 chapters
32

High-Throughput LLM Inference Serving

Budget model and KV memory, distinguish prefill from decode, and compare batching policies.

Draft · editorial review pending

33

Autonomous Agent Orchestration Platform

Persist run state and tool identities so a resumed workflow does not repeat external effects.

Draft · editorial review pending

Part 7 · Storage & infrastructure internals8 chapters
Part 8 · Streaming & analytics7 chapters
Part 9 · Classic case studies II12 chapters
52

Distributed Web Crawler

Coordinate a durable crawl frontier with host politeness, deduplication and changing destinations.

Draft · editorial review pending

53

Notification & Omnichannel Push System

Combine preferences, channel fan-out, provider limits and delivery evidence for notifications.

Draft · editorial review pending

54

Cloud File Sync & Sharing Service

Track chunk manifests, local changes and conflict history across intermittently connected devices.

Draft · editorial review pending

57

Hotel & Flight Reservation System

Enforce availability across every requested night while managing holds and external reservations.

Draft · editorial review pending

59

Real-Time Gaming Leaderboard

Define rank, ties and neighborhood reads before choosing score or user partitioning.

Draft · editorial review pending

60

Proximity Service & Business Discovery

Choose a spatial index for mostly stationary places and filter candidates by product constraints.

Draft · editorial review pending

61

Food Delivery & Multi-Hop Logistics

Coordinate preparation, courier assignment and delivery windows across three participants.

Draft · editorial review pending

Part 10 · AI & cloud platforms6 chapters

Study resources

These pages are available now. Use the preparation you need, then return to the chapter you chose.

6 interview practice scenarios

Check each exercise's prerequisites before attempting it; linked preparation may still be in draft.

What is inside the chapters?

The draft chapters explain the problem and intuition, then develop architecture and worked calculations, production trade-offs and failure recovery. They include diagrams, explained questions, a design exercise, an interview rubric and primary-source reading. Editorial review is still pending.

How to use this course

Choose a case for the decision you want to understand. A released case will explain its required mechanisms and identify any course-local preparation. Fundamentals is a separate guided course, not a requirement to complete first.

Compare the two courses.

Course scope and editorial status

Study a complete system, inspect its mechanisms and resource budgets, then revise the design when workload or failure assumptions change. Required preparation and the recommended case sequence will be confirmed as cases complete review.

  1. Foundations5 planned topics · editorial review pending
  2. Data & scale5 planned topics · editorial review pending
  3. Reliability patterns6 planned topics · editorial review pending
  4. Coordination6 planned topics · editorial review pending
  5. Classic case studies I8 planned topics · editorial review pending
  6. AI systems6 planned topics · editorial review pending
  7. Storage & infrastructure internals8 planned topics · editorial review pending
  8. Streaming & analytics7 planned topics · editorial review pending
  9. Classic case studies II12 planned topics · editorial review pending
  10. AI & cloud platforms6 planned topics · editorial review pending