SystemDesign.website
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.

Your Mastery Progress
0% Mastery
0 of 61 Modules Completed
📚 10 Tracks
🏗️ 35 Blocks
🚀 21 Cases
01

Track 1 — Core Foundations, Frameworks & Networking

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

0 of 0 Completed
Module 1.1 · FoundationsFREE

What is System Design?

The localhost trap, 3 core building blocks, interactive scaling simulator, and problem decomposition.

⏱️ ~10 minStart
Module 1.2 · FoundationsFREE

Vertical vs Horizontal Scaling

Scale Up vs Scale Out, the physical hardware ceiling, and the stateless golden rule.

⏱️ ~14 minStart
Module 1.3 · FoundationsFREE

Capacity Estimation & Math

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

⏱️ ~15 minStart
Module 1.4 · Framework👑 PRO

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).

⏱️ ~15 minStart
Module 1.5 · Foundations👑 PRO

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.

⏱️ ~15 minStart
Module 1.6 · Foundations👑 PRO

What Happens When You Enter a URL?

The #1 classic interview question: 8-stage interactive tracer from browser keystroke to pixels on screen.

⏱️ ~20 minStart
Module 1.7 · Foundations👑 PRO

Processes, Threads & Concurrency

Processes, thread memory models, event loops vs worker pools, and context switching costs.

⏱️ ~18 minStart
Module 1.8 · Foundations👑 PRO

Thrashing & Memory Bottlenecks

Virtual memory, page tables, TLB cache misses, working set exhaustion, and cache churn.

⏱️ ~15 minStart
02

Track 2 — Load Balancing & Network Distribution

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

0 of 0 Completed
Module 2.1 · Networks👑 PRO

Load Balancer Placement

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

⏱️ ~15 minStart
Module 2.2 · Networks👑 PRO

DNS + CDN Basics

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

⏱️ ~15 minStart
Module 2.3 · Networks👑 PRO

Design Consistent Hashing

Hash rings, virtual nodes, zero-downtime key rebalancing, and avoiding distributed cache stampedes.

⏱️ ~20 minStart
03

Track 3 — DataStores & Storage Engines

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

0 of 0 Completed
Module 3.1 · DataStores👑 PRO

SQL vs NoSQL Selection

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

⏱️ ~15 minStart
Module 3.2 · DataStores👑 PRO

Database Replication

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

⏱️ ~20 minStart
Module 3.3 · DataStores👑 PRO

Sharding Strategy Design

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

⏱️ ~20 minStart
Module 3.4 · DataStores👑 PRO

Database Indexes & B-Trees

B+ Tree fan-out, disk page I/O, Clustered vs Secondary indexes, and write penalty trade-offs.

⏱️ ~25 minStart
Module 3.5 · DataStores👑 PRO

Design a Distributed Key-Value Store

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

⏱️ ~30 minStart
Module 3.6 · DataStores👑 PRO

LSM Trees & SSTable Storage Engines

Cassandra & RocksDB: Write-Ahead Logs (WAL), MemTables, Bloom Filters, and SSTable compaction.

⏱️ ~25 minStart
Module 3.7 · DataStores👑 PRO

Geospatial DBs & Spatial Indexing

Uber & Yelp proximity search: Geohashes, 8-neighbor expansion, QuadTrees, and Google S2 Hilbert Curves.

⏱️ ~28 minStart
Module 3.8 · DataStores👑 PRO

Zero-Downtime DB Migrations

The Expand & Contract pattern, dual writing, non-blocking backfilling, and GitHub's gh-ost.

⏱️ ~25 minStart
04

Track 4 — Caching & Memory Architecture

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

0 of 0 Completed
Module 4.1 · Caching👑 PRO

Caching Strategies & Placement

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

⏱️ ~25 minStart
Module 4.2 · Caching👑 PRO

Distributed Caching & Eviction

Redis Cluster 16,384 Hash Slots, single-threaded event loop, RDB/AOF persistence, and O(1) LRU eviction.

⏱️ ~28 minStart
Module 4.3 · Caching👑 PRO

Bloom Filters & Probabilistic Math

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

⏱️ ~26 minStart
05

Track 5 — Communication Patterns & Asynchronous Systems

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

6 of 6 Completed (100%)
Module 5.1 · Messaging👑 PRO

Sync vs Async Boundaries

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

⏱️ ~20 minStart
Module 5.2 · Messaging👑 PRO

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 · Messaging👑 PRO

Unique ID Generator (Twitter Snowflake)

64-bit Snowflake IDs (Timestamp + Node + Sequence), clock drift, node ID assignment, and UUIDv7.

⏱️ ~26 minStart
Module 5.4 · Messaging👑 PRO

Real-Time WebSockets & SSE

Full-duplex WebSockets, Server-Sent Events (SSE), sticky sessions, Redis backplanes, and fallback long-polling.

⏱️ ~24 minStart
Module 5.5 · Messaging👑 PRO

Transactional Outbox & CDC

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

⏱️ ~26 minStart
Module 5.6 · Messaging👑 PRO

API Design: REST vs GraphQL vs gRPC

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

⏱️ ~25 minStart
06

Track 6 — Consistency, Transactions & Distributed Consensus

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

2 of 2 Completed (100%)
Module 6.1 · Consensus👑 PRO

CAP Theorem & Consistency Models

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

⏱️ ~28 minStart
Module 6.2 · Consensus👑 PRO

Isolation Levels & Distributed Sagas

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

⏱️ ~28 minStart
07

Track 7 — Distributed Reliability, Rate Limiting & DevOps

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

5 of 5 Completed (100%)
Module 7.1 · Reliability👑 PRO

Design a Distributed Rate Limiter

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

⏱️ ~28 minStart
Module 7.2 · Reliability👑 PRO

Fault Tolerance & Circuit Breakers

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

⏱️ ~28 minStart
Module 7.3 · Reliability👑 PRO

Service Discovery & Heartbeats

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

⏱️ ~28 minStart
Module 7.4 · Reliability👑 PRO

Telemetry & Distributed Tracing

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

⏱️ ~28 minStart
Module 7.5 · Reliability👑 PRO

Monolith to Microservices Evolution

When to migrate, the Strangler Fig pattern, Anti-Corruption Layers (ACL), and Database CDC.

⏱️ ~30 minStart
08

Track 8 — Security & Authentication Mechanisms

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

3 of 3 Completed (100%)
Module 8.1 · Security👑 PRO

Token-Based Auth & JWTs

Stateless JWT anatomy, HMAC vs RSA signatures, Access & Refresh token rotation, and Redis revocation blacklists.

⏱️ ~28 minStart
Module 8.2 · Security👑 PRO

OAuth 2.0 & OpenID Connect

Delegated authorization, Authorization Code Grant with PKCE, ID Tokens vs Access Tokens, and M2M flows.

⏱️ ~30 minStart
Module 8.3 · Security👑 PRO

Authorization: ACL, RBAC & ABAC

Fine-grained permissions, Role Explosion solutions, Attribute-Based (ABAC), Google Zanzibar (ReBAC), and OPA.

⏱️ ~30 minStart
09

Track 9 — System Design Trade-Off Frameworks

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

2 of 2 Completed (100%)
Module 9.1 · Trade-offs👑 PRO

Pull vs. Push & Fan-Out Systems

Client Pull vs Server Push, Fan-Out-on-Write vs Read, Twitter Celebrity Problem, and Hybrid Fan-Out.

⏱️ ~30 minStart
Module 9.2 · Trade-offs👑 PRO

Latency, Throughput, Memory & Accuracy

The architectural quadrangle: Batching vs Streaming, Memory caching vs cold storage, and Exact SQL vs HyperLogLog.

⏱️ ~30 minStart
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 0 Completed
🎨New Interactive Tool

System Design Architecture Studio & AI Evaluator

Draw architectures on a freehand whiteboard canvas or drag-and-drop cloud components with live AI grading.

Launch Studio →
Case Study 01 · Alex Xu Ch 8👑 PRO

Design a URL Shortener (TinyURL)

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

⏱️ ~30 minStart
Case Study 02 · Alex Xu Ch 9👑 PRO

Design a Web Crawler (Googlebot)

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

⏱️ ~35 minStart
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