Skip to content

System Design Fundamentals

A guided path from foundations to complete designs.

Start the course →

Need the basics? System Design foundations.

Course modules

Frame a design4 lessons

Choose an entry point and understand the requirements → components → designs progression

  1. 01How this System Design course works
  2. 02Turn a product request into a design brief
  3. 03Define quality goals you can evaluate
  4. 04Estimate one workload from user action to component demand
Follow a request6 lessons

Annotate where name lookup, connection setup and response work occur

  1. 05Follow a request through DNS, connections and HTTP
  2. 06Spend a latency budget
  3. 07Distribute traffic across healthy capacity
  4. 08Define service and API boundaries
  5. 09Deliver content from the edge
  6. 10Checkpoint: defend the request path
Store and find data8 lessons

Select keys and records from actual reads, writes and invariants

  1. 11Start a data design with access patterns
  2. 12Choose relational, document and key-value models
  3. 13Make queries fast and account for write costs
  4. 14Replicate data and observe lag
  5. 15Partition data without hiding hot keys
  6. 16Compose a distributed key-value store
  7. 17Store large objects separately from metadata
  8. 18Find eligible results through an index
Move work through time6 lessons

Separate interactive acceptance from background completion; derive backlog growth

  1. 19Move slow work into a queue
  2. 20Recover jobs under a delivery contract
  3. 21Choose queues, streams and pub-sub
  4. 22Schedule work without losing ownership
  5. 23Give events identities and reason about order
  6. 24Checkpoint: recover a background pipeline
Preserve correctness7 lessons

Distinguish unavailable, delayed, failed and unknown outcomes under a declared failure model

  1. 25Describe failure before choosing recovery
  2. 26State what a read is allowed to observe
  3. 27Repeat delivery without repeating an effect
  4. 28Protect invariants inside one database
  5. 29Coordinate changes across service boundaries
  6. 30Agree on one history with consensus
  7. 31Checkpoint: reconcile an uncertain operation
Operate the system9 lessons

Choose placement, expiry, invalidation and stampede handling

  1. 32Cache data while preserving a freshness contract
  2. 33Limit request rates under a declared policy
  3. 34Bound overload, retries and waiting
  4. 35Observe user outcomes and internal behavior
  5. 36Enforce identity and tenant boundaries
  6. 37Change a running system safely
  7. 38Recover across regions and restore data
  8. 39Aggregate counts without one hot writer
  9. 40Checkpoint: review a production-ready design
Compose complete systems20 lessons

A baseline short-link design with collision and redirect requirements

  1. 41Short links: identifiers, redirects and data placement
  2. 42Short links under skew, abuse and failure
  3. 43Chat: durable messages and live delivery
  4. 44Chat after disconnection
  5. 45Feeds: choose fan-out and stable pagination
  6. 46Feeds under skew and changing eligibility
  7. 47Payments: record an approved money movement
  8. 48Payments with uncertain external outcomes
  9. 49Media: upload, process and publish
  10. 50Media under burst traffic and failed processing
  11. 51Search and suggestions: build the read model
  12. 52Search when evidence or eligibility changes
  13. 53Dispatch: fresh locations and exclusive assignments
  14. 54Dispatch under stale data and contention
  15. 55Collaborative editing: represent concurrent work
  16. 56Collaborative editing after offline divergence
  17. 57A crawler: frontier, fetching and deduplication
  18. 58A crawler under hostile and changing inputs
  19. 59A job-execution platform: submit, isolate and observe
  20. 60A job-execution platform under worker loss

Optional study

Optional AI architectures6 lessons

A serving design with workload, batching, admission and memory assumptions

  1. 61Serve model requests under memory and latency limits
  2. 62Build a permission-aware document assistant
  3. 63Run agents with bounded authority and durable state
  4. 64Evaluate and observe changing AI systems
  5. 65Route model traffic through a platform boundary
  6. 66Review an integrated enterprise AI platform
Optional interview practice3 lessons

A concise discussion of scope, estimates, alternatives and failure behavior

  1. 67Communicate a design under a chosen timebox
  2. 68Practise an unseen design with a visible rubric
  3. 69Revise a design after critique

After the core

Continue into optional AI architecture or practise explaining an unfamiliar design. Design communication and independent design practice remain available when you need them.

Reference material

Explore both System Design courses

Workload and constraints

Module checkpoint

Hypothetical scenario. A catalogue receives 200 requests/s and a chosen mean service time of 0.1s under stable flow. A request makes three independent remote reads after an initial lookup. Explain what changes when retention doubles and the remote reads are made concurrent.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

Mean in-flight work is 200 × 0.1 = 20 requests under the stated stable accounting. Doubling retention doubles retained payload only if ingestion, record size and deletion policy stay fixed; it does not itself double request rate. Concurrent independent reads replace their serial sum with a critical-path maximum, plus actual coordination costs. They can reduce latency while retaining the same remote work and increasing instantaneous concurrency. Establish deadlines and dependency limits before accepting more work.

Revisit: Estimating Northwind’s Launch-Day Traffic Before It Arrives · From Browser to Server: Networking, Load Balancers, and Latency Budgets

Data and asynchronous work

Module checkpoint

Hypothetical scenario. A seller withdraws an item. The authoritative transaction commits, but the event publisher crashes before updating the cache and search view. A retried consumer later receives the same update twice. Trace what may remain stale and which boundary prevents duplicate effects.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

Persist publication intent with the authoritative transaction, then retry delivery. Derived views can remain stale until processing succeeds; a cache TTL alone does not establish immediate withdrawal visibility. Use identity and version checks at the derived effect boundary so an older event cannot undo a newer state. Consumer acknowledgement after the effect still leaves an uncertain interval, so record deduplication together with the effect where the selected store permits it. A source of truth, an index, a cache and a queue have distinct contracts.

Revisit: Choosing a Data Model: Postgres, Key-Value, and Document Stores · Indexes: Why Queries Are Fast and What Writes Pay for It · Caching with Redis: Why the Price Page Stampeded, and How to Stop It · Queues and Streams: Smoothing Spikes with Kafka, SQS, and RabbitMQ

Distribute the data

Module checkpoint

Hypothetical scenario. One tenant produces 400 requests/s and cannot be split by the current tenant key. A region becomes isolated immediately after a withdrawal is acknowledged. Explain whether adding shards and promoting a reachable replica establishes safe, current reads.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

More tenant-keyed shards cannot split that tenant’s indivisible demand. The system must also identify which acknowledgement boundary covered the withdrawal, whether the candidate holds and can expose that state, and how obsolete writers are excluded. Reachability establishes none of those facts. For an operation promising a current authoritative status, return a permitted unavailable outcome rather than silently serving stale state. A description view can have a separately declared weaker contract.

Revisit: Consistency: What Replicas Promise and the CAP/PACELC Trade-offs · Partitioning: Consistent Hashing and Hot Shards · Replication and Failover: What Gets Lost When the Primary Dies

Design for failure

Module checkpoint

Hypothetical scenario. A reservation times out after committing, the caller retries, and every service layer also retries. Traces cover only a sample. Define a safe response and explain what the evidence can establish.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

Keep one logical operation identity and reconcile its authoritative effect. A timeout or absent sampled trace does not prove failure. Bound attempts across layers under the remaining task deadline, protect dependency concurrency and reject expired work. Measure attempts separately from logical outcomes, and inspect telemetry loss before treating the trace store as complete. A breaker protects resources while open; it does not reverse a completed reservation.

Revisit: Idempotency Keys: How Northwind Stopped Double-Charging Customers · Observability: Metrics, Logs, Traces, and SLOs with OpenTelemetry · Overload: Timeouts, Backpressure, Load Shedding, and Rate Limiting

Coordinate changes

Module checkpoint

Hypothetical scenario. A correctly elected replacement worker submits a refund while the previous worker resumes. The provider does not inspect authority generations, and one response is lost. Has consensus completed the workflow design?

Write your decision and assumptions before opening the explanation.

Compare your reasoning

No. Agreement protects the coordinator’s decision within its scope. The external effect needs enforceable authority or supported operation identity and reconciliation. Record requested, confirmed and unresolved refund states. If the workflow permits compensation, specify its intermediate states and late-result policy; compensation itself can fail. An atomic commit mechanism only covers participants that support its actual protocol.

Revisit: Raft in Practice: How a Cluster Agrees on Who Is in Charge · Distributed Transactions: Two-Phase Commit vs Sagas

Work through a complete architecture

Module checkpoint

Hypothetical scenario. Review both final architectures after a cache restart and a permission or withdrawal change. Produce a workload estimate, name the authoritative state, choose unavailable behavior and explain what evidence would block release.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

For the URL case, preserve token identity and future-request withdrawal semantics while bounding refill work; analytics remain a separately declared derived path. For the assistant, eligible source versions and permissions must survive cache and index routing; fluent answers cannot override missing authority or support. In both cases, use explicit cold-path demand, safe retry identity, bounded recovery and outcome-specific indicators. A permission leak, conflicting token assignment or unsupported withdrawal promise blocks release under the stated contracts even if mean latency improves. Explain one rejected alternative and a measurable condition that would change that decision.

Revisit: Case: Designing a Short-Link Service · Case: A Permission-Aware Document Assistant (RAG at Scale)

Optional architecture cases

Module checkpoint

Hypothetical scenario. A withdrawn supplier post returns during feed replay, an old media job finishes after a correction, a suggestion exposes a restricted title, two orders select one driver, and an offline editor returns after access revocation. Name the authority and version check each path needs before accepting another visible effect.

Write your decision and assumptions before opening the explanation.

Compare your reasoning

Feed reconstruction preserves withdrawal and source-version evidence. Media publication conditionally selects the currently authorized complete presentation. Suggestions check eligibility before disclosure and scope their caches accordingly. Dispatch accepts one assignment through an authoritative conditional transition, then validates offer generation and expiry on late responses. Collaborative synchronization applies the current accepted-operation and permission policy; convergence does not grant editing or approval authority. For one case, derive the workload from the stated inputs and explain which cost remains outside that calculation. A successful candidate lookup or completed worker does not settle the authoritative transition.

Revisit: Architecture case: feeds, fan-out, and stable pagination · Architecture case: media processing and versioned playback · Architecture case: search, suggestions, and eligible results · Architecture case: location freshness and exclusive dispatch · Architecture case: concurrent editing and recoverable history