Design backends that hold up at scale.
Your progress
Nothing finished yet.
Complete one lesson to get going. 0 of 112 lessons
Foundations
Building the bedrock of distributed thinking.
- 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 - 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 - 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 - 01.04
Data Modeling
Understand how to model data for real-world systems — relational schema design, normalization, indexing, transactions, and query optimization.
3 lessonsDATABASE - 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
Core Distributed Systems
Managing state across multiple machines.
- 02.01
Consistency & Consensus
Understand the fundamental trade-offs of distributed systems — CAP theorem, PACELC model, strong vs eventual consistency, and linearizability.
2 lessonsDISTRIBUTED - 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 - 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 - 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 - 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
Patterns & Scaling
Design patterns for massive growth.
- 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
Key Technologies
Production-grade tools and their trade-offs.
- 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
System Design Problems
End-to-end system design case studies.
- 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 - 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 - 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 - 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 - 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 - 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 - 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
