System Design Lab

Understand System Design by Seeing It in Action.

Explore distributed systems, design scalable architectures, and solve real-world engineering problems through interactive simulations.

Modules
17
Lessons planned
164
Available now
164
Price
Free

A typical web architecture

UsersLoadbalancerApp server AApp server BApp server CCachefast readsDatabasesource of truth
Illustration of the building blocks the lessons explain. The labs run them as simulations.

Watch it run

A live, simplified simulation: requests arrive, queue and get served. Press play in any lab to change the settings yourself.

UsersLoad BalancerApp 1App 2App 3CacheDatabase

preview · the live simulation starts here

Interactive experiences

Learn by changing something and watching the system respond.

  • Failure Lab

    Replay production incidents in a simulated system, then decide what to change.

    • Cache Stampede
    • Database Outage
    • Queue Backlog
    • +2 more

    5 incident scenarios

  • Design Lab

    Assemble load balancers, servers, caches, databases and queues, set their capacity and run it.

    • Single Server
    • Load Balanced Application
    • Cached Application
    • +2 more

    5 starting designs

  • Interview practice

    Worked system design interviews, from requirements to the trade-offs you would defend.

  • Calculators and patterns

    Capacity and latency calculators, and a catalog of the patterns the lessons build on.

How the Lab teaches

  • Behaviour, not diagrams

    Requests are simulated one by one. Queues fill, servers saturate, health checks notice failures late. What you see on screen is what the model computed.

  • Deterministic and replayable

    The same settings always produce the same run, so you can step backwards, change one thing and compare.

  • Trade-offs stated

    Every lesson covers when not to use an idea, how it fails in production and the misconceptions interviewers like to probe.

  • Open to everyone

    No account, no paywall, no email required. Progress is saved for you automatically.

Pick a path

Suggested orders through the modules. Every lesson stays open, so skip whatever you already know.

Full roadmap
  • System Design Beginner

    Start here if terms like throughput, replica or cache-aside are new. Builds the intuition the rest relies on.

    5 modules

  • Backend Engineer

    What a backend engineer meets in production: scaling a service, its data, its queues, and keeping it observable and safe.

    9 modules

  • Senior Software Engineer

    Deeper data and failure topics: replication, consistency, resilience patterns and performance limits.

    7 modules

  • Software Architect

    Structure and trade-offs across services: architecture styles, microservices, consistency, security and infrastructure.

    7 modules

  • System Design Interview Preparation

    The building blocks interviewers expect, capacity estimation, then full case studies to practise on.

    9 modules

  • AI Engineer

    The infrastructure around models: scaling and caching basics, messaging, then RAG, agents, MCP and evaluation.

    7 modules

The curriculum

From latency and load balancing to consensus, microservices and AI systems.

All lessons
  • Users on a laptop and a phone send requests to an application server, which reads from a database and answers.

    Module 01

    System Design Fundamentals

    The vocabulary every design conversation uses: requirements, latency, throughput, availability, reliability and scalability, and how they pull against each other.

    Beginner

    8 lessons · 8 available

  • A request leaves the client, resolves its name at DNS, passes a router, a CDN edge and a reverse proxy, and reaches the origin server.

    Module 02

    Networking and Internet

    What happens between a click and a response: addressing, name resolution, transport protocols, HTTP versions, long-lived connections and proxies.

    Beginner

    10 lessons · 10 available

  • A load balancer spreads client requests across four application servers; the fourth has just been added and is still idle.

    Module 03

    Scaling and Load Balancing

    Growing past one machine: bigger servers, more servers, and the algorithms that decide which server handles each request.

    Beginner

    8 lessons · 8 available

  • Two services query a relational database, which keeps a search index in sync and streams backups to object storage.

    Module 04

    Database Fundamentals

    How databases store, find and protect data: data models, indexes, transactions, isolation and the connection and query costs that dominate latency.

    Intermediate

    10 lessons · 10 available

  • A router sends queries to two database shards; each shard replicates to a read replica in its own zone.

    Module 05

    Distributed Databases

    Copying and splitting data across machines: replication modes, leaders, lag, sharding and quorums, with the consistency each one gives up.

    Advanced

    10 lessons · 10 available

  • Two application servers read through a cache; most reads are answered by the cache and only misses reach the database.

    Module 06

    Caching

    Keeping hot data close: read and write strategies, eviction, invalidation, and what happens when many requests miss at once.

    Intermediate

    8 lessons · 8 available

  • Two producers publish events to a topic that fans out to two queues, each drained by a worker.

    Module 07

    Messaging and Event-Driven Systems

    Decoupling work in time: queues, publish/subscribe, event streams, partitions, consumer groups, ordering and delivery guarantees.

    Intermediate

    10 lessons · 10 available

  • A five-node cluster: the leader in the middle replicates its log to four followers; one follower is cut off by a network partition.

    Module 08

    Distributed Systems

    The hard part: partial failure, unreliable clocks and networks, consistency models, consensus and coordination between machines.

    Advanced

    10 lessons · 10 available

  • A load balancer routes around a failed application server while its two healthy peers keep serving and the database stays up.

    Module 09

    Reliability and Resilience

    Staying up when dependencies fail: timeouts, retries with backoff, circuit breakers, bulkheads, rate limits, failover and recovery.

    Intermediate

    10 lessons · 10 available

  • A layered architecture: a browser talks to a web tier, which calls two application services, which use a database and object storage.

    Module 10

    Software Architecture

    Organising code inside a service: layers, ports and adapters, vertical slices, modular monoliths, DDD, CQRS and event sourcing.

    Intermediate

    10 lessons · 10 available

  • An API gateway routes requests to three microservices, each owning its own database.

    Module 11

    Microservices

    Splitting a system into services and keeping it consistent: boundaries, discovery, gateways, sagas, outbox and idempotent consumers.

    Advanced

    10 lessons · 10 available

  • Traffic passes a firewall into an API gateway that checks tokens from an identity provider; the service behind it reads credentials from a secrets vault.

    Module 12

    Security and Identity

    Who is calling and what they may do: sessions, tokens, OAuth 2.0, OpenID Connect, API protection, zero trust and secrets.

    Intermediate

    8 lessons · 8 available

  • Three services under different load stream telemetry into a pipeline that stores logs in a search index and metrics in a time-series database.

    Module 13

    Observability

    Knowing what a running system is doing: logs, metrics, traces, OpenTelemetry, service level objectives and incident investigation.

    Intermediate

    6 lessons · 6 available

  • A global load balancer sends traffic to Kubernetes pods in two regions; each region writes to object storage, replicated across regions.

    Module 14

    Cloud and Infrastructure

    Where the software runs: virtual machines, containers, Kubernetes, regions and zones, CDNs, object storage and serverless.

    Intermediate

    8 lessons · 8 available

  • A crowd of users drives three servers toward saturation; overflow work piles up in a full queue in front of two busy workers.

    Module 15

    Performance Engineering

    Finding and moving limits: capacity planning, bottlenecks, Little's Law, queueing, concurrency and load testing.

    Advanced

    8 lessons · 8 available

  • An AI agent calls a language model, retrieves context from a vector database filled by an embedding model, and uses tools through an MCP server.

    Module 16

    AI System Design

    Building around language models: embeddings, vector search, RAG, agents, the Model Context Protocol, gateways, semantic caching and evaluation.

    Advanced

    10 lessons · 10 available

  • A complete web architecture: users, CDN, load balancer, two app servers, cache, primary database with a replica, and a queue feeding a background worker.

    Module 17

    Real-World System Design

    Whole systems end to end, as design exercises: requirements, estimates, architecture, scaling and failure handling.

    Advanced

    20 lessons · 20 available

Questions

Is the System Design Lab free?

Yes. Every lesson, simulation and exercise is free, with no account, no trial and no payment.

Do I need to sign up?

No. Open any lesson and start. There is nothing to unlock.

How is my progress saved?

Your browser keeps your progress, and we also store it on our server under a salted hash of your network address (never the address itself), so it survives a cleared browser on the same network. People on the same network, such as an office, share that server record, and a new network starts a fresh one; your browser copies its own progress over when that happens.

Are the numbers in the simulations real benchmarks?

No. The simulations are simplified, deterministic models built to show behaviour: queues growing, failures being detected, load shifting. Each scenario lists its assumptions. Treat the numbers as illustrations, not measurements of any product.

What should I know before starting?

Basic programming and a rough idea of what a web server and a database do. The fundamentals module covers the rest.