SystemDesign.io
Gold-Standard 10-Track Architecture Curriculum

High-Level System Design (HLD)

A comprehensive, visual curriculum covering computer networking, storage engines, caching patterns, asynchronous pipelines, distributed consensus, security, and 21 flagship real-world system case studies.

Curriculum Mastery Progress
10 of 56 Modules Completed17.9% Live
📚 10 Tracks
🏗️ 35 Building Blocks
🚀 21 Case Studies
01

Track 1 — Core Foundations, Frameworks & Networking

Interview frameworks, hardware limits, scaling philosophy, back-of-the-envelope math, and TCP/IP stack.

3 of 8 Completed
Module 1.1 · FoundationsAvailable Now

Introduction to Architecture

Request-Response lifecycle, components, Monolith vs Microservices, and latency numbers.

Basic Request-Response Flow
Interactive Practice Canvas
⏱️ ~10 minStart
Module 1.2 · FoundationsAvailable Now

Scale from Zero to Millions of Users

When to Scale Up vs Scale Out, stateless server fleets, and Redis session stores.

Scale Up vs Scale Out Trade-offs
Stateless Server Fleet Canvas
⏱️ ~15 minStart
Module 1.3 · FoundationsAvailable Now

Capacity Estimation & Math

Master back-of-the-envelope calculations: QPS, Peak QPS, Storage/Year, RAM 80/20 rule, and Bandwidth.

Live "System Sizer" Calculator
80/20 Pareto RAM Sizing
⏱️ ~15 minStart
Module 1.4 · FrameworkNext Up on Roadmap

The 4-Step Interview Framework

Master Alex Xu's 4-step interview strategy: Step 1 (Scope) ➔ Step 2 (High-Level Design & APIs) ➔ Step 3 (Deep Dive Bottlenecks) ➔ Step 4 (Wrap Up).

⏳ Interactive 4-Step Interview Simulator
⏳ Requirements Checklist Rubric
🎯 In Development⏱️ ~15 min
Module 1.5 · FoundationsPlanned

HTTP & The Internet TCP/IP Stack

The 4-layer TCP/IP model, HTTP/1.1 vs HTTP/2 Multiplexing vs HTTP/3 (QUIC), and TCP 3-way handshake.

🔒 Upcoming⏱️ ~15 min
Module 1.6 · FoundationsPlanned

What Happens When You Enter a URL?

The #1 classic interview question: 8-stage interactive tracer from browser URL parse to DOM rendering.

🔒 Upcoming⏱️ ~20 min
Module 1.7 · FoundationsPlanned

Processes, Threads & Concurrency

Process vs Thread memory boundaries, Concurrency vs Parallelism, Context switching, and Thread Pools.

🔒 Upcoming⏱️ ~15 min
Module 1.8 · FoundationsPlanned

Thrashing & Memory Bottlenecks

Working set vs RAM limits, OS page swap thrashing, and cache churn degradation under heavy load.

🔒 Upcoming⏱️ ~10 min
02

Track 2 — Load Balancing & Network Distribution

Traffic balancing, DNS lookups, Edge CDNs, and Consistent Hashing rings.

2 of 3 Completed
Module 2.1 · NetworksAvailable Now

Load Balancer Placement

Evenly distribute traffic, prevent server crashes, and explore Layer 4 vs Layer 7 routing differences.

⏱️ ~15 minStart
Module 2.2 · NetworksAvailable Now

DNS + CDN Basics

How DNS resolves domain names and how Edge CDNs serve cached static assets in <10ms.

⏱️ ~15 minStart
Module 2.3 · NetworksPlanned

Design Consistent Hashing

Hash rings, virtual nodes, minimizing key migration during node add/remove, and hot-spot mitigation.

🔒 Upcoming⏱️ ~20 min
03

Track 3 — DataStores & Storage Engines

Relational vs NoSQL, Replication, Sharding, B-Tree Indexes, Distributed KV Stores, and Spatial indexing.

3 of 8 Completed
Module 3.1 · DataStoresAvailable Now

SQL vs NoSQL Selection

Relational ACID tables vs Document, Key-Value, Columnar, and Graph data stores.

⏱️ ~15 minStart
Module 3.2 · DataStoresAvailable Now

Database Replication

Scale read-heavy workloads with Leader-Follower architecture, sync/async replication, and failover.

⏱️ ~20 minStart
Module 3.3 · DataStoresAvailable Now

Sharding Strategy Design

Hash vs Range vs Directory partitioning, shard key selection, and cross-shard join challenges.

⏱️ ~20 minStart
Module 3.4 · DataStoresPlanned

Database Indexes & B-Trees

B-Trees vs Hash indexes, Clustered vs Non-clustered, and read speedup vs insert write penalties.

🔒 Upcoming⏱️ ~20 min
Module 3.5 · DataStoresPlanned

Design a Distributed Key-Value Store

DynamoDB architecture: Quorum Consensus ($R+W>N$), Vector Clocks, Hinted Handoff, and Merkle Trees.

🔒 Upcoming⏱️ ~25 min
Module 3.6 · DataStoresPlanned

LSM Trees & SSTable Storage Engines

Why Cassandra/RocksDB write at 1M+ ops/sec: WAL, MemTables, and immutable SSTable compactions.

🔒 Upcoming⏱️ ~20 min
Module 3.7 · DataStoresPlanned

Geospatial DBs & QuadTrees

Geohashing, QuadTrees, Google S2 cells, and sub-millisecond proximity queries for Uber and Tinder.

🔒 Upcoming⏱️ ~25 min
Module 3.8 · DataStoresPlanned

Zero-Downtime DB Migrations

The Expand-and-Contract pattern, dual writing, historical backfilling, and safe column cutover.

🔒 Upcoming⏱️ ~15 min
04

Track 4 — Caching & Memory Architecture

In-memory caching strategies, Redis Clusters, eviction policies, and Bloom Filters.

1 of 3 Completed
Module 4.1 · CachingAvailable Now

Caching Strategies & Placement

Serve 95%+ of queries in <1ms from RAM: Cache-Aside, Write-Through, and prevent cache disasters.

⏱️ ~20 minStart
Module 4.2 · CachingPlanned

Distributed Caching & Eviction

Redis Cluster vs Memcached, and eviction algorithms: LRU, LFU, Segmented LRU, and 2Q caches.

🔒 Upcoming⏱️ ~20 min
Module 4.3 · CachingPlanned

Bloom Filters & Probabilistic Math

Eliminate expensive disk reads on cache misses with Bloom Filters and count billions with HyperLogLog.

🔒 Upcoming⏱️ ~15 min
05

Track 5 — Communication Patterns & Asynchronous Systems

Sync vs Async, Task Queues, Pub/Sub Fan-Out, Snowflake ID Generator, and Transactional Outbox.

2 of 6 Completed
Module 5.1 · MessagingAvailable Now

Sync vs Async Boundaries

Prevent thread starvation and 504 timeouts with HTTP 202 Accepted, Task Queues, and Idempotency.

⏱️ ~20 minStart
Module 5.2 · MessagingAvailable Now

Message Queue vs Pub-Sub

1-to-1 Competing Consumers vs 1-to-Many Fan-Out, RabbitMQ vs Kafka vs SQS, and Partition Keys.

⏱️ ~20 minStart
Module 5.3 · MessagingPlanned

Unique ID Generator (Twitter Snowflake)

Why auto-increment fails in distributed systems: 64-bit Snowflake IDs (Timestamp + Node + Sequence).

🔒 Upcoming⏱️ ~20 min
Module 5.4 · MessagingPlanned

Real-Time WebSockets & SSE

Full-duplex WebSockets, Server-Sent Events (SSE), and fallback long-polling for real-time applications.

🔒 Upcoming⏱️ ~20 min
Module 5.5 · MessagingPlanned

Transactional Outbox & CDC

Solving the dual-write problem: Transactional Outbox pattern with Change Data Capture (Debezium).

🔒 Upcoming⏱️ ~20 min
Module 5.6 · MessagingPlanned

API Design: REST, GraphQL, gRPC

Comparing JSON REST vs GraphQL flexibility vs binary gRPC/Protobuf throughput for internal microservices.

🔒 Upcoming⏱️ ~15 min
06

Track 6 — Consistency, Transactions & Distributed Consensus

CAP Theorem, PACELC, isolation levels, 2-Phase Commit, and the Saga pattern.

0 of 2 Completed
Module 6.1 · ConsensusPlanned

CAP Theorem & Consistency Models

CAP & PACELC trade-offs, Linearizability, Sequential, Causal, and Eventual Consistency models.

🔒 Upcoming⏱️ ~20 min
Module 6.2 · ConsensusPlanned

Isolation Levels & Distributed Sagas

ACID isolation (Read Committed to Serializable) vs 2-Phase Commit (2PC) and Distributed Sagas.

🔒 Upcoming⏱️ ~25 min
07

Track 7 — Distributed Reliability, Rate Limiting & DevOps

Rate limiting algorithms, Circuit Breakers, Service Discovery, and OpenTelemetry.

0 of 5 Completed
Module 7.1 · ReliabilityPlanned

Design a Distributed Rate Limiter

Token Bucket, Leaky Bucket, Sliding Window Log, and atomic Redis Lua rate limiting at scale.

🔒 Upcoming⏱️ ~20 min
Module 7.2 · ReliabilityPlanned

Fault Tolerance & Circuit Breakers

Preventing cascading outages: Circuit Breakers (Closed/Open/Half-Open), Bulkheads, and Retries with Jitter.

🔒 Upcoming⏱️ ~20 min
Module 7.3 · ReliabilityPlanned

Service Discovery & Heartbeats

Client-side vs Server-side discovery, Consul/Eureka registration, and health check heartbeats.

🔒 Upcoming⏱️ ~15 min
Module 7.4 · ReliabilityPlanned

Telemetry & Distributed Tracing

The 3 pillars of observability: Metrics (Prometheus), Logs, and OpenTelemetry Distributed Tracing.

🔒 Upcoming⏱️ ~15 min
Module 7.5 · ReliabilityPlanned

Monolith to Microservices Migration

When to migrate, the Strangler Fig pattern, Anti-Corruption Layers, and Containerization basics.

🔒 Upcoming⏱️ ~20 min
08

Track 8 — Security & Authentication Mechanisms

JWT tokens, OAuth 2.0 / OpenID Connect, and Role-Based Access Control (RBAC).

0 of 3 Completed
Module 8.1 · SecurityPlanned

Token-Based Auth (JWT)

JWT signature verification (HMAC vs RSA), Access & Refresh token rotation, and Redis revocation lists.

🔒 Upcoming⏱️ ~15 min
Module 8.2 · SecurityPlanned

OAuth 2.0 & OpenID Connect

Authorization Code Flow with PKCE, single sign-on (SSO), and delegating third-party API permissions.

🔒 Upcoming⏱️ ~20 min
Module 8.3 · SecurityPlanned

Authorization: ACL, RBAC & ABAC

Role-Based vs Attribute-Based access control, Rule engines, and Policy decoupling (OPA).

🔒 Upcoming⏱️ ~15 min
09

Track 9 — System Design Trade-Off Frameworks

Pull vs Push models, Throughput vs Latency, Memory vs Latency, and Latency vs Accuracy.

0 of 2 Completed
Module 9.1 · Trade-offsPlanned

Pull vs Push Architectures

Pull-based polling vs Push-based streaming, and hybrid fan-out for high-follower celebrity accounts.

🔒 Upcoming⏱️ ~15 min
Module 9.2 · Trade-offsPlanned

Latency, Throughput & Accuracy

Throughput vs Latency (batching), Memory vs Latency (caches), and Latency vs Accuracy (HyperLogLog).

🔒 Upcoming⏱️ ~15 min
10

Track 10 — Flagship Real-World System Case Studies

21 battle-tested system design interview problems with full end-to-end architecture diagrams.

0 of 21 Completed
Case Study 01 · Alex Xu Ch 8

Design a URL Shortener (TinyURL)

Base62 encoding, Key Generation Service (KGS), 301 vs 302 redirect caching, and DB sharding.

🔒 Upcoming⏱️ ~20 min
Case Study 02 · Alex Xu Ch 9

Design a Web Crawler (Googlebot)

URL Frontier (Priority + Politeness queues), HTML Parser, SimHash deduplication, and DNS cache.

🔒 Upcoming⏱️ ~25 min
Case Study 03 · Alex Xu Ch 10

Design a Notification System

APNs (iOS), FCM (Android), SMS/Email workers, priority message queues, and user rate limits.

🔒 Upcoming⏱️ ~25 min
Case Study 04 · Alex Xu Ch 11

Design a News Feed System

Feed publishing vs news feed generation, Fan-out on write vs read, and Redis Timeline caching.

🔒 Upcoming⏱️ ~25 min
Case Study 05 · Alex Xu Ch 12

Design a Chat System (WhatsApp)

WebSocket stateful servers, message sync flow, group chat message fan-out, and online presence.

🔒 Upcoming⏱️ ~25 min
Case Study 06 · Alex Xu Ch 13

Search Autocomplete (Typeahead)

Trie data structure in RAM, frequency node caching, Top-K aggregation, and weekly prefix updates.

🔒 Upcoming⏱️ ~25 min
Case Study 07 · Alex Xu Ch 14

Design YouTube Video Streaming

Video upload flow, DAG-based parallel transcoding scheduler, adaptive HLS/DASH bitrates, and CDN.

🔒 Upcoming⏱️ ~25 min
Case Study 08 · Alex Xu Ch 15

Design Google Drive / Dropbox

Block-level 4MB chunking, Delta Sync (upload modified blocks only), S3 storage, and sync conflict resolution.

🔒 Upcoming⏱️ ~25 min
Case Study 09 · Alex Xu Ch 4

Rate Limiter as a Service

Multi-tenant tier quota isolation, high-throughput Redis cluster, and fallback bypass.

🔒 Upcoming⏱️ ~20 min
Case Study 10 · Alex Xu Ch 7

Distributed Unique ID Generator

Twitter Snowflake 64-bit ID generator service, clock drift handling, and high-throughput sequence counters.

🔒 Upcoming⏱️ ~20 min
Case Study 11

Instagram Photo Sharing & Feed

High-throughput photo uploads, news feed generation, follow graph, and object storage.

🔒 Upcoming⏱️ ~25 min
Case Study 12

Tinder Proximity Matching

Sub-second radius geospatial matching, bidirectional swipe tracking, and real-time match events.

🔒 Upcoming⏱️ ~25 min
Case Study 13

TikTok Video Feed & Delivery

Ultra-low-latency short video chunking, recommendation pipeline fan-out, and edge caching.

🔒 Upcoming⏱️ ~25 min
Case Study 14

Online Coding Judge (LeetCode)

Sandboxed container execution (Docker/gVisor), resource limit throttling, and test case evaluation.

🔒 Upcoming⏱️ ~25 min
Case Study 15

UPI Real-Time Payment Switch

High-availability payment orchestration, bank-to-bank settlement, idempotency, and ACID ledgers.

🔒 Upcoming⏱️ ~25 min
Case Study 16

IRCTC High-Concurrency Booking

Tatkal flash reservations, atomic seat locking in Redis, queue buffering, and payment reconciliation.

🔒 Upcoming⏱️ ~25 min
Case Study 17

DoorDash Food Delivery & Dispatch

Courier auto-dispatch engine, dynamic ETA calculations, merchant order queue, and live GPS tracking.

🔒 Upcoming⏱️ ~25 min
Case Study 18

Amazon E-Commerce & Flash Sales

Shopping cart state, flash sales inventory reservation, catalog search, and checkout pipelines.

🔒 Upcoming⏱️ ~25 min
Case Study 19

Google Maps Location & Routing

Map tile rendering, road network graph partition, A* / Dijkstra shortest path, and real-time traffic.

🔒 Upcoming⏱️ ~25 min
Case Study 20

Gmail Email Storage & Search

Distributed inbox storage, full-text inverted indexing, attachment deduplication, and spam pipelines.

🔒 Upcoming⏱️ ~25 min
Case Study 21

Google Docs Collaborative Editor

Real-time concurrent multi-user editing, Operational Transformation (OT) vs CRDTs, and undo history.

🔒 Upcoming⏱️ ~25 min