Tradeoff
Sign inGet started
System design interview prep

Learn system design by designing systems.

45 focused topics, from the first clarifying question to multi-region architecture. Every topic ends in problems you solve the same day.

C01Design a URL shortener
21:48

Preview of the design workspace, which is in development. Rubric weights shown are this problem's real ones.

How it works

Practice starts with the first topic, not after the course.

Interviews test whether you can design under questioning. So the unit of progress here is a submitted design, not a watched video.

  1. 01

    Learn one concept

    A short lesson: the problem it solves, how it works, where it breaks, and the trade-offs. No hour-long videos.

  2. 02

    Design with it the same day

    Three problems per topic: guided, timed, then interview level. Requirements, numbers, API, data and a real diagram.

  3. 03

    Get scored against a rubric

    Each problem has its own rubric. Every point links to the part of your design that earned or missed it.

  4. 04

    Practise what is weak

    Mastery comes only from submitted designs, so your next step is always the topic your work shows you need.

Curriculum

Six stages. Each one ends in something you can design.

topics
45topics
full challenges
31full challenges
of material
135 hof material
  1. STAGE 1

    Foundations

    Beginner · 7 topics · 17 h

    You leave able to work through a 45-minute design of a simple service that runs in one region, step by step and without getting lost: agree what it must do, estimate its size, design its API and its tables, and draw a first architecture.

    • How system design interviews…
    • Requirements and scoping
    • Back-of-the-envelope estimati…
    • Client–server basics, latency…
    • API design
    • +2 more
  2. STAGE 2

    Scaling reads and data

    Beginner → Intermediate · 11 topics · 28 h

    You leave able to take a design that works on one server and grow it to tens of millions of users: app servers that keep no user data in memory, load balancing, a CDN, caching, database copies, splitting data across machines and generating IDs, while being honest about what each choice costs.

    • Vertical vs horizontal scalin…
    • Load balancing, reverse proxi…
    • CDN and edge caching
    • Cache fundamentals and cachin…
    • Cache invalidation and evicti…
    • +6 more
  3. STAGE 3

    Asynchronous and correct

    Intermediate · 9 topics · 28 h

    You leave able to design systems that handle many writes and multi-step work, and that stay correct when requests are retried, messages arrive twice, many users act at the same moment, or only part of the system fails.

    • Synchronous vs asynchronous w…
    • Pub/sub and log-based brokers…
    • Delivery guarantees, idempote…
    • Retries, backoff, dead-letter…
    • Transactions, ACID and isolat…
    • +4 more
  4. STAGE 4

    Reliability and operations

    Intermediate · 4 topics · 12 h

    You leave able to make a design keep working when it is overloaded, when something it depends on gets slow, or when a server or a whole data centre (zone) fails, and explain how you would tell that it is healthy.

    • Rate limiting
    • Resilience patterns: timeouts…
    • High availability, failover a…
    • Observability and SLOs
  5. STAGE 5

    Problem families

    Intermediate → Advanced · 9 topics · 31 h

    You leave able to recognise which family of problem an interview question belongs to (chat, feeds, search, media, location, scheduling, payments, counting), apply the design pattern known to work for it, and then adapt it to the question's numbers and constraints.

    • Real-time delivery: polling,…
    • Feed generation: fan-out on w…
    • Search and typeahead
    • Object storage and large file…
    • Video processing and streaming
    • +4 more
  6. STAGE 6

    Senior architecture

    Advanced · 5 topics · 18 h

    You leave able to lead an open-ended design for users around the world, change an existing system safely while it keeps running, and defend your trade-offs in terms of cost, risk and the effect on teams. These are what interviewers grade at senior and staff level.

    • Multi-region architecture
    • Consensus and coordination fu…
    • Service boundaries and data o…
    • Capacity planning and cost
    • Evolution and migration

Prerequisite map

Every topic knows what it builds on.

When you struggle with a topic, the next step points back to the prerequisite that is actually weak. Hover a topic to trace its links.

STAGE 1FoundationsSTAGE 2Scaling reads and dataSTAGE 3Asynchronous and correctSTAGE 4Reliability and operationsSTAGE 5Problem familiesSTAGE 6Senior architecture1.1How system design inte…How system design interviews work1.2Requirements and scopi…Requirements and scoping1.3Back-of-the-envelope e…Back-of-the-envelope estimation1.4Client–server basics,…Client–server basics, latency, throughput and availability1.5API designAPI design1.6Choosing a datastoreChoosing a datastore1.7Data modelling for int…Data modelling for interviews2.1Vertical vs horizontal…Vertical vs horizontal scaling and stateless services2.2Load balancing, revers…Load balancing, reverse proxies and API gateways2.3CDN and edge cachingCDN and edge caching2.4Cache fundamentals and…Cache fundamentals and caching strategies2.5Cache invalidation and…Cache invalidation and eviction2.6Cache failure modes an…Cache failure modes and distributed caching2.7Indexing and storage e…Indexing and storage engines2.8Replication and read r…Replication and read replicas2.9Partitioning and shard…Partitioning and sharding2.10Consistent hashingConsistent hashing2.11Unique ID generationUnique ID generation3.1Synchronous vs asynchr…Synchronous vs asynchronous work and message queues3.2Pub/sub and log-based…Pub/sub and log-based brokers (Kafka)3.3Delivery guarantees, i…Delivery guarantees, idempotency and the outbox3.4Retries, backoff, dead…Retries, backoff, dead-letter queues and backpressure3.5Transactions, ACID and…Transactions, ACID and isolation levels3.6Concurrency control: o…Concurrency control: optimistic and pessimistic locking3.7Consistency models, CA…Consistency models, CAP and PACELC3.8Distributed transactio…Distributed transactions, sagas and event-driven design3.9Distributed locks and…Distributed locks and leases4.1Rate limitingRate limiting4.2Resilience patterns: t…Resilience patterns: timeouts, retries, circuit breakers, bulkheads, load shedding4.3High availability, fai…High availability, failover and disaster recovery4.4Observability and SLOsObservability and SLOs5.1Real-time delivery: po…Real-time delivery: polling, SSE and WebSockets5.2Feed generation: fan-o…Feed generation: fan-out on write, on read, and hybrid5.3Search and typeaheadSearch and typeahead5.4Object storage and lar…Object storage and large file uploads5.5Video processing and s…Video processing and streaming5.6Geospatial systemsGeospatial systems5.7Distributed scheduling…Distributed scheduling, timers and crawlers5.8Payments and ledgersPayments and ledgers5.9Counting, aggregation…Counting, aggregation and stream processing6.1Multi-region architect…Multi-region architecture6.2Consensus and coordina…Consensus and coordination fundamentals6.3Service boundaries and…Service boundaries and data ownership6.4Capacity planning and…Capacity planning and cost6.5Evolution and migrationEvolution and migration

Example · topic 2.4

One topic, three problems.

These follow cache fundamentals and caching strategies. The same ladder exists for all 45 topics.

  1. Guided

    No timer

    Add cache-aside caching to a product API (the app checks the cache first and, on a miss, reads the database and stores the result). Walk through a hit and a miss step by step.

  2. Timed

    30 min

    Design caching for a product catalogue that receives 50,000 requests per second, where prices change a few times a day.

  3. Interview

    45 min

    Design a cache spread across several regions for a social platform's profile and post reads. It must cope with a region failing, remove old copies when someone edits, and stop the database being overloaded.

Start with how the interview works.

Topic 1.1 takes about 90 minutes and sets up the method every later problem uses.

Start for free