Vibe Engines
YouTube

Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path

Roadmap · 2026 Edition

System
Design.

18 stations. 3 tracks. From APIs and databases to designing Twitter, YouTube, and Uber — at your own pace.

Fundamentals
~5h 0/6
Building Blocks
~5h 0/6
Real Systems
~6h 0/6
0 of 18 stations · ~0h of ~16h

The roadmap.

18 stations on 3 ladders, in order — each rung is written assuming the one above it. Mark them off as you go; your progress is saved in this browser.

0 / 18
Pick up at
Track 1 of 3

FundamentalsStart here

6 rungs · ~5h · ends at CAP Theorem.

0/6 done
  1. Client–Server & APIs

    Start here

    F1 · Beginner · 45 min

    Every system starts with a client asking a server for something. Requests and responses, statelessness, REST vs RPC, and status codes are the vocabulary of distributed systems — get these right and every later diagram makes sense.

    Build itDesign the API for a simple pastebin: list the endpoints, methods, and request/response shapes. Which calls are idempotent?

    ✓ CheckpointExplain why idempotency is a correctness property and not a convenience, using a retried payment.

  2. Back-of-the-Envelope

    F2 · Beginner · 45 min

    Before you draw a single box, estimate the numbers: queries per second, storage per year, bandwidth, and how many servers that implies. Capacity math turns "it should scale" into a defensible design — and it is the first thing interviewers probe.

    • QPS estimation
    • Storage & bandwidth math
    • Powers of two
    • Peak vs average load

    Build itEstimate the storage and QPS for a URL shortener serving 100M new links/month with a 100:1 read/write ratio. Show your working.

    ✓ CheckpointEstimate QPS and storage for a system out loud, and say which of your numbers you are least confident about.

  3. Databases: SQL vs NoSQL

    F3 · Beginner · 60 min

    The database is the heart of most designs. Relational (SQL) gives you joins, transactions, and strong schemas; NoSQL families — key-value, document, wide-column — trade some of that for scale and flexibility. Knowing when each fits is core.

    • Relational vs NoSQL
    • Transactions & ACID
    • Indexing basics
    • Schema design

    Build itFor a chat app, decide where messages, user profiles, and presence each live — and justify SQL vs NoSQL for each.

    ✓ CheckpointPick SQL or NoSQL for one real workload and name what you gave up — every choice gives up something.

  4. Caching

    F4 · Intermediate · 45 min

    A cache is the single highest-leverage tool for read-heavy systems: keep hot data in memory and spare the database. But caches bring their own problems — invalidation, staleness, eviction, and the thundering herd when they go cold.

    • Cache-aside
    • TTL & eviction (LRU)
    • Invalidation
    • Thundering herd

    Build itDesign the caching layer for a read-heavy profile service: what do you cache, for how long, and how do you handle a cache miss storm?

    ✓ CheckpointExplain the thundering herd and what actually prevents it when a hot key expires.

  5. Load Balancing

    F5 · Intermediate · 45 min

    One server is a single point of failure and a scaling ceiling. A load balancer spreads traffic across many, routes around unhealthy nodes, and lets you scale horizontally. Layer-4 vs layer-7, health checks, and sticky sessions are the knobs.

    • L4 vs L7
    • Round-robin / least-conns
    • Health checks
    • Sticky sessions

    Build itSketch how a request reaches one of five app servers. Where does the load balancer sit, and what happens when a server fails a health check?

    ✓ CheckpointExplain the difference between L4 and L7 load balancing in terms of what the balancer can see.

  6. CAP Theorem

    F6 · Intermediate · 45 min

    When a network partition hits, a distributed system must choose: stay consistent (reject some requests) or stay available (serve possibly-stale data). CAP names that unavoidable tradeoff, and it quietly drives most real design decisions.

    • Consistency vs availability
    • Partition tolerance
    • CP vs AP systems
    • Eventual consistency

    Build itFor a shopping cart vs a bank ledger, argue whether you would lean CP or AP, and what the user sees during a partition.

    ✓ CheckpointExplain why CAP describes behaviour DURING a partition, and why choosing CP moves the failure rather than removing it.

Track 2 of 3

Building BlocksLevel up

6 rungs · ~5h · ends at Consensus & Coordination.

0/6 done
  1. Sharding & Partitioning

    T1 · Intermediate · 60 min

    When data outgrows one machine, you split it — by hash, by range, or by directory. Sharding scales writes and storage horizontally, but introduces hard problems: cross-shard queries, hot shards, and rebalancing as you grow.

    • Hash vs range partitioning
    • Shard keys
    • Hot spots
    • Rebalancing

    Build itChoose a shard key for a social app's posts table. What query gets slow because of your choice, and how would you mitigate it?

    ✓ CheckpointPick a shard key for a real table and name the hotspot it creates. Every choice creates one somewhere.

  2. Replication & Consistency

    T2 · Advanced · 60 min

    Copies of your data buy availability and read scale — but now they can disagree. Leader/follower vs multi-leader, synchronous vs async replication, and the consistency models (strong, eventual, read-your-writes) are the tradeoffs to master.

    • Leader / follower
    • Sync vs async replication
    • Replication lag
    • Consistency models

    Build itA user updates their profile, then immediately reloads and sees the old value. Explain the replication cause and two ways to fix it.

    ✓ CheckpointExplain what a reader can observe under async replication that they could not under sync, and what that costs.

  3. Message Queues

    T3 · Intermediate · 45 min

    Queues decouple producers from consumers: work is accepted fast, buffered, and processed asynchronously. They absorb spikes, enable fan-out, and add resilience — at the cost of new concerns like ordering, retries, and exactly-once delivery.

    • Async processing
    • Fan-out
    • At-least-once vs exactly-once
    • Backpressure

    Build itRedesign a slow synchronous "send email on signup" flow with a queue. What happens if the email worker is down for an hour?

    ✓ CheckpointExplain why at-least-once delivery forces idempotent consumers, and what breaks if you assume exactly-once.

  4. Consistent Hashing

    T4 · Advanced · 45 min

    Naive hashing (key % N) reshuffles almost everything when you add or remove a server. Consistent hashing places nodes and keys on a ring so a change moves only a small slice of keys — the trick behind distributed caches and databases.

    • The hash ring
    • Virtual nodes
    • Minimal reshuffling
    • Load balancing keys

    Build itWith 4 cache nodes on a ring, add a 5th. Roughly what fraction of keys move, and why is that better than key % N?

    ✓ CheckpointExplain what virtual nodes fix on a hash ring, and what a ring without them does when a node joins.

  5. Rate Limiting

    T5 · Intermediate · 45 min

    To protect a service from abuse and overload you cap how fast callers can hit it. Token bucket, leaky bucket, and sliding window each shape bursts differently — and doing it across a fleet of servers needs shared state.

    • Token / leaky bucket
    • Sliding window
    • Distributed counters
    • Per-user vs global limits

    Build itDesign a 100-requests-per-minute-per-user limit that works across 10 API servers. Where does the counter live?

    ✓ CheckpointExplain why a fixed window lets a caller send 2× the limit across a boundary, and which algorithm fixes it.

  6. Consensus & Coordination

    T6 · Advanced · 60 min

    How do independent nodes agree on a single value — who is the leader, what is the latest committed write — despite failures? Consensus (Raft, Paxos) and coordination primitives (quorums, leader election) are the backbone of reliable distributed systems.

    • Leader election
    • Quorums (N/R/W)
    • Raft / Paxos intuition
    • Split-brain

    Build itWith 5 replicas, pick read and write quorum sizes that guarantee strong consistency. Why does R + W > N matter?

    ✓ CheckpointExplain what a quorum guarantees with N/R/W, and pick values for a read-heavy system.

Track 3 of 3

Real SystemsDesign it

6 rungs · ~6h · ends at Design a Ride-Share.

0/6 done
  1. Design a URL Shortener

    P1 · Intermediate · 45 min

    The classic warm-up. Generate short unique keys, store the mapping, and serve billions of read-heavy redirects with low latency. Simple on the surface, it exercises key generation, caching, and read/write scaling.

    • Key generation
    • Read-heavy scaling
    • Caching redirects
    • Base62 encoding

    Build itWalk the full design: how do you generate keys without collisions, and how do you serve a redirect in under 10ms at scale?

    ✓ CheckpointJustify your key-generation scheme for a URL shortener and say what breaks if two servers generate at once.

  2. Design a News Feed

    P2 · Advanced · 60 min

    Aggregating posts from everyone you follow, ranked, in milliseconds. The core decision is fan-out on write vs read, and the celebrity problem — a user with 50M followers breaks the naive approach.

    • Fan-out on write vs read
    • Feed ranking
    • The celebrity problem
    • Precomputation

    Build itDesign the feed for a user following 500 accounts. When would you precompute the feed, and how do you handle a celebrity post?

    ✓ CheckpointExplain the celebrity problem and why the push/pull threshold is a cost decision rather than a convention.

  3. Design a Chat System

    P3 · Advanced · 60 min

    Real-time messaging with delivery guarantees, presence, ordering, and offline delivery. WebSockets vs long-polling, message storage, and the read-receipt problem make this a rich end-to-end design.

    • WebSockets & presence
    • Message ordering
    • Delivery guarantees
    • Offline queues

    Build itDesign one-to-one chat: how does a message reach an offline user, and how do you guarantee it is delivered exactly once, in order?

    ✓ CheckpointExplain how you would order messages in a chat when two arrive from different servers at the same moment.

  4. Design Twitter

    P4 · Advanced · 60 min

    The canonical large-scale interview problem. Timelines, tweets, follows, and serving hundreds of thousands of reads per second — it ties together fan-out, caching, sharding, and the hybrid push/pull timeline.

    • Timeline generation
    • Hybrid push/pull
    • Sharding tweets
    • Read-heavy scale

    Build itDesign the home timeline. When do you push a tweet to followers vs pull on read, and how do you mix the two?

    ✓ CheckpointExplain why a hybrid timeline beats pure push or pure pull, and which users each half serves.

  5. Design a Video Platform

    P5 · Advanced · 60 min

    Upload, transcode, store, and stream video to millions — YouTube-scale. Chunked upload, transcoding pipelines, CDN delivery, adaptive bitrate, and metadata at scale come together here.

    • Chunked upload
    • Transcoding pipeline
    • CDN & adaptive bitrate
    • Metadata at scale

    Build itTrace a video from upload to playback: where does transcoding happen, and how does the CDN keep playback smooth on a bad connection?

    ✓ CheckpointExplain why video is transcoded into multiple renditions and what adaptive bitrate is choosing between.

  6. Design a Ride-Share

    P6 · Advanced · 60 min

    Matching riders to nearby drivers in real time — Uber-scale. Geospatial indexing, live location updates, matching, and surge pricing make this a demanding real-time systems problem.

    • Geospatial indexing (geohash/quadtree)
    • Real-time location
    • Matching
    • Surge pricing

    Build itDesign driver matching: how do you find nearby drivers fast, and how do you keep millions of live locations fresh?

    ✓ CheckpointExplain what a geospatial index gives you that a latitude/longitude index does not.

The roadmap at a glance

All 18 rungs on one screen. Each track assumes the one before it; the highlighted rung is where a track ends and the next one picks up.

FundamentalsF1 Client–Server & APIsF2 Back-of-the-EnvelopeF3 Databases: SQL vs NoSQLF4 CachingF5 Load BalancingF6 CAP TheoremBuilding BlocksT1 Sharding & PartitioningT2 Replication & ConsistencyT3 Message QueuesT4 Consistent HashingT5 Rate LimitingT6 Consensus & CoordinationReal SystemsP1 Design a URL ShortenerP2 Design a News FeedP3 Design a Chat SystemP4 Design TwitterP5 Design a Video PlatformP6 Design a Ride-Share
Track order matters more than rung order inside a track: finish a track's last rung before starting the next track.

Worked example: a three-hours-a-week plan

Say you have three focused hours a week — an evening or two. Take the rungs in order and never split one across two weeks; a rung that would push the week past three hours starts the next week. The rung times add up to 15h 45m.

WeekRungsTime
Week 1F1 Client–Server & APIs, F2 Back-of-the-Envelope, F3 Databases: SQL vs NoSQL2h 30m
Week 2F4 Caching, F5 Load Balancing, F6 CAP Theorem2h 15m
Week 3T1 Sharding & Partitioning, T2 Replication & Consistency, T3 Message Queues2h 45m
Week 4T4 Consistent Hashing, T5 Rate Limiting, T6 Consensus & Coordination2h 30m
Week 5P1 Design a URL Shortener, P2 Design a News Feed, P3 Design a Chat System2h 45m
Week 6P4 Design Twitter, P5 Design a Video Platform, P6 Design a Ride-Share3h

That is 6 weeks of reading. The Build-it exercise on each rung is extra and is where most of the learning happens, so plan to spend at least as long building as reading — or halve the pace and do both in the same week.

What each track costs in time

The rung times above, added up per track. Use it to plan the slow stretch: a track that takes a larger share of the total is where the plan above spends more weeks.

TrackRungsTimeShareLongest rung
1. Fundamentals64h 45m30%F3 Databases: SQL vs NoSQL (1h)
2. Building Blocks65h 15m33%T1 Sharding & Partitioning (1h)
3. Real Systems65h 45m37%P2 Design a News Feed (1h)

Common mistakes on the System Design path

  • Drawing boxes before doing the numbers

    Without an estimate (F2) you cannot tell whether one database is plenty or forty shards are needed. Interviewers notice when the design is not sized to anything.

  • Using CAP as a slogan

    Saying “it’s eventually consistent” for a whole system is a red flag. Choose per feature: a cart can be AP, a ledger should be CP, and say what the user sees during a partition (F6, T2).

  • Adding every component by default

    Shards, queues and microservices each add failure modes. Reach for sharding (T1) or a queue (T3) when a number or a requirement demands it, and say which one.

  • Memorising the classic designs

    Reciting a URL shortener (P1) falls apart when the interviewer changes one requirement. Learn the building blocks in the T track so you can re-derive the design.

  • Ignoring the failure path

    Every box needs an answer to “what if this dies?” The cache goes cold (F4), the queue backs up (T3), a node fails its health check (F5).

Where this shows up: jobs and interviews

  • Where it shows up at work

    Design docs and design reviews: writing down requirements, estimates, components and trade-offs before building. Backend, platform and senior engineers do this routinely.

  • How the interview runs

    Clarify requirements, estimate load (F2), sketch the API (F1) and data model (F3), draw the high-level design, then deep-dive where the interviewer pushes. The round is common in mid-level and senior loops.

  • Which rungs map to which question

    P1 is the usual warm-up; P2 and P4 test fan-out; P3 tests real-time delivery; P5 tests CDNs and pipelines; P6 tests geospatial indexing. Deep dives pull from T1–T6.

  • How to practise and show it

    Practise out loud against a timer, and write one design doc for something you actually built, with its estimate, diagram and the trade-off you would revisit.

Check yourself

Open a question only after you have answered it out loud. If one stumps you, the rung in brackets is where to go back to.

A URL shortener gets 100M new links a month with a 100:1 read/write ratio. Estimate write and read QPS.

A month is about 2.6M seconds, so writes are about 40 per second and reads about 4,000 per second on average. Size for peak, which is a multiple of the average. (F2)

A user saves their profile, reloads, and sees the old value. What happened, and how do you fix it?

The read went to an async follower that had not caught up. Give read-your-writes: send that user’s reads to the leader for a short window after a write, or read from a replica only once it has reached the write’s version. (T2)

You add a fifth node to a four-node cache. How many keys move with consistent hashing versus key % N?

With a ring, about a fifth of the keys move, only those the new node takes over. With key % N, going from 4 to 5 moves about four-fifths, which empties most of the cache at once. (T4)

With 5 replicas, choose read and write quorums for strong consistency, then for a read-heavy system.

Any R + W > N works, so every read overlaps the latest write: R = 3, W = 3 is balanced. For read-heavy, R = 2, W = 4 makes reads cheaper, but a write now fails if two replicas are down. (T6)

System Design roadmap — frequently asked questions

The common questions before you start — how long it takes, whether to follow it in order, and how it stays current.

How long does this roadmap take?

It runs 18 stations across 3 tracks — roughly ~16h of focused learning, plus the time you spend actually building. It is self-paced, so most people work through it over a few weeks, an evening or a single station at a time.

Do I have to follow the stations in order?

The tracks are ordered so each station builds on the one before, and following them start to finish is the intended path. But every station also stands alone — if you already have the foundations, jump straight to the part you need.

Is it free?

Yes. The whole roadmap, and every handbook, lab, and challenge it links to, is free and open — no sign-up and no paywall.

How is the roadmap kept current?

It teaches the durable fundamentals of the role first, then the tooling and the AI-era shifts on top — so most of it stays relevant as individual tools churn, and it is revised as the role itself changes.

Who is this roadmap for?

Anyone stepping into or leveling up in the System Design role — whether you are switching in, early-career, or a senior filling gaps. Start where you are; the ladder shows what is left.

Finished this one? 0 / 31 Roadmaps done
NextBackend Engineer Roadmap Closest roadmap to this one

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.

More Roadmaps