Design backends that hold up at scale.

Your progress

Nothing finished yet.

Complete one lesson to get going. 0 of 112 lessons

Start: What is System Design?
Module0110 lessons

Foundations

Building the bedrock of distributed thinking.

  1. 01.01

    What is System Design?

    Learn what system design is, the 3 layers of architecture, components, and interactions, and a step-by-step framework for tackling any system design interview question.

    1 lessonOVERVIEW
  2. 01.02

    Networking Essentials

    Master the networking fundamentals every backend engineer needs — from the protocol stack to DNS resolution and load balancing strategies.

    2 lessonsNETWORKING
  3. 01.03

    API Design

    Learn how to design clean, scalable APIs — REST conventions, GraphQL trade-offs, gRPC for internal services, and versioning strategies.

    2 lessonsAPI
  4. 01.04

    Data Modeling

    Understand how to model data for real-world systems — relational schema design, normalization, indexing, transactions, and query optimization.

    3 lessonsDATABASE
  5. 01.05

    Numbers Every Engineer Knows

    Build intuition for system performance — latency numbers, storage hierarchies, throughput estimates, and the back-of-the-envelope math that drives every design decision.

    2 lessonsPERFORMANCE
Module0213 lessons

Core Distributed Systems

Managing state across multiple machines.

  1. 02.01

    Consistency & Consensus

    Understand the fundamental trade-offs of distributed systems — CAP theorem, PACELC model, strong vs eventual consistency, and linearizability.

    2 lessonsDISTRIBUTED
  2. 02.02

    Caching

    Master caching strategies for distributed systems — cache layers, eviction policies, invalidation patterns, and the trade-offs that make or break system performance.

    3 lessonsPERFORMANCE
  3. 02.03

    Partitioning & Routing

    Learn how to split data across machines and route requests to the right shard — hash-based partitioning, consistent hashing, range partitioning, and rebalancing strategies.

    3 lessonsDISTRIBUTED
  4. 02.04

    Database Internals

    Under-the-hood mechanics — storage engines, write-ahead logs, LSM trees, B-trees, compaction, and the internal machinery that makes databases fast and reliable.

    3 lessonsDATABASE
  5. 02.05

    Data Structures for Big Data

    Probabilistic & streaming data structures — Bloom filters, Count-Min Sketch, HyperLogLog, and other space-efficient structures that power analytics, deduplication, and real-time processing at scale.

    2 lessonsDATA
Module0316 lessons

Patterns & Scaling

Design patterns for massive growth.

  1. 03.01

    Scaling Reads

    Read-heavy systems — read replicas, caching layers, CDN strategies, denormalization, and the patterns that let systems serve millions of reads per second.

    2 lessonsSCALING
  2. 03.02

    Scaling Writes

    Write-heavy systems — message queues, event sourcing, write-ahead logs, batching, and the patterns that let systems absorb millions of writes per second.

    2 lessonsSCALING
  3. 03.03

    Real-time Updates

    Live data delivery — WebSockets, Server-Sent Events, long polling, pub/sub systems, and the patterns that power chat, notifications, live dashboards, and collaborative editing.

    2 lessonsREAL-TIME
  4. 03.04

    Dealing with Contention

    Concurrency & locking — optimistic vs pessimistic locking, distributed locks, rate limiting, and the patterns that prevent race conditions, double-spending, and resource exhaustion.

    2 lessonsCONCURRENCY
  5. 03.05

    Multi-step Processes

    Distributed transactions — sagas, two-phase commit, compensating actions, and the patterns that coordinate multi-service operations without a single database transaction.

    2 lessonsPATTERNS
  6. 03.06

    Handling Large Blobs

    Object & file storage — pre-signed URLs, chunked uploads, CDN delivery, and the patterns for storing and serving images, videos, and large files at scale.

    2 lessonsSTORAGE
  7. 03.07

    Managing Long-running Tasks

    Async job management — task queues, job scheduling, progress tracking, retries, and the patterns that handle background work like video processing, report generation, and data pipelines.

    2 lessonsASYNC
  8. 03.08

    Security & Access Patterns

    Authentication, authorization, and system protection — JWT vs sessions, OAuth 2.0, RBAC, API security, rate limiting for abuse prevention, and defense against common attack vectors.

    2 lessonsSECURITY
Module0466 lessons

Key Technologies

Production-grade tools and their trade-offs.

View all
  1. 04.01

    Redis

    In-memory data store — the primary choice for caching, session storage, pub/sub, and distributed locks. Supports rich data structures making it versatile beyond simple key-value.

    5 lessonsCACHE
  2. 04.02

    Kafka

    Distributed event streaming platform — durable, high-throughput event bus for decoupled async communication, event sourcing, and real-time stream processing. Consumers can replay events from any offset.

    5 lessonsSTREAMING
  3. 04.03

    Elasticsearch

    Distributed search and analytics engine — full-text search with relevance ranking, real-time aggregations, and geo queries at scale. Built on Apache Lucene's inverted index.

    5 lessonsSEARCH
  4. 04.04

    PostgreSQL

    Battle-tested relational database with true ACID guarantees. Correctness first — transactions, constraints, query planning, and the guarantees that make it the default choice when you need to trust your data.

    7 lessonsDATABASE
  5. 04.05

    API Gateway

    The traffic management system that sits between the outside world and your services. Handles routing, auth, rate limiting, and observability so your services don't have to.

    9 lessonsINFRASTRUCTURE
  6. 04.06

    DynamoDB

    The most opinionated database in the modern stack. You give up query flexibility at design time in exchange for guaranteed single-digit millisecond performance at any scale.

    7 lessonsNOSQL
  7. 04.07

    Cassandra

    A distributed log that happens to look like a database. Cassandra trades query flexibility for always-on availability, massive write throughput, and linear scalability across datacenters.

    7 lessonsNOSQL
  8. 04.08

    ZooKeeper

    The distributed coordination service. ZooKeeper provides the primitives — leader election, locks, configuration, service discovery — that keep distributed systems in sync.

    9 lessonsCOORDINATION
  9. 04.09

    Flink

    The distributed stream processing framework for stateful computations over unbounded data. Flink provides exactly-once guarantees, event-time processing, and millisecond latency at massive scale.

    12 lessonsPROCESSING
Module057 lessons

System Design Problems

End-to-end system design case studies.

View all
  1. 05.01

    Design a URL Shortener (Bitly)

    Interview-ready end-to-end design of a URL shortener — requirements, capacity estimation, base62 ID generation, caching and CDN layers, Kafka+Flink analytics, scaling tiers, abuse protection, observability, trade-offs, and 10+ curveball follow-ups.

    1 lessonCLASSIC
  2. 05.02

    Design a Ride Matching System (Uber/Ola)

    Interview-ready end-to-end design of a ride-matching system — geospatial indexing (S2/H3), 1.25M location updates/sec via WebSocket, matching algorithm with composite scoring, surge pricing, ETA estimation, ride state machine, scaling by city, and 8+ curveball follow-ups.

    1 lessonREAL-TIME
  3. 05.03

    Design a Video Streaming Platform (YouTube/Netflix)

    Interview-ready end-to-end design of a video streaming platform — resumable uploads, transcoding DAGs with segment-level parallelism, HLS/DASH adaptive bitrate streaming, multi-tier CDN delivery, view count pipelines, recommendation feeds, storage tiering, and 10+ curveball follow-ups.

    1 lessonSTORAGE
  4. 05.04

    Design a Web Crawler (Googlebot)

    Interview-ready end-to-end design of a web crawler — URL frontier with priority scheduling, Bloom filter + SimHash deduplication, per-domain politeness enforcement, adaptive re-crawl scheduling, headless browser rendering for JS pages, fault tolerance, and 10+ curveball follow-ups.

    1 lessonDISTRIBUTED
  5. 05.05

    Design a Collaborative Document Editor (Google Docs/Notion)

    Interview-ready end-to-end design of a collaborative editor — OT vs CRDT conflict resolution, server-authoritative operation ordering, WebSocket synchronization, presence and cursor tracking, offline editing with rebase, version history with snapshot compaction, and 10+ curveball follow-ups.

    1 lessonREAL-TIME
  6. 05.06

    Design a Ticket Booking System (Ticketmaster/BookMyShow)

    Interview-ready end-to-end design of a ticket booking system — virtual waiting room for traffic shaping, Redis-based atomic seat claims, seat state machine with TTL expiration, payment saga with compensation, bot prevention and fairness mechanisms, and 10+ curveball follow-ups.

    1 lessonCONSISTENCY
  7. 05.07

    Design a Messaging App (WhatsApp/Telegram)

    Interview-ready end-to-end design of a messaging app — WebSocket connection management at 50M concurrent, per-conversation message ordering, tiered group fan-out, Signal Protocol E2E encryption, multi-device sync, presence service, media pipeline, Cassandra data model, and 10+ curveball follow-ups.

    1 lessonREAL-TIME