LEARN SYSTEM DESIGN
Your learning directory.
Open a topic. Trace an idea. Then put it into practice.
40 lessons · 445 visual steps · 9 topics
0 of 40 marked studied · this browser only
THE CURRICULUM
Learn one idea at a time.
40 of 40 lessons
01. Foundations0/3
- How a Request TravelsFollow one HTTPS page load, watch its components join the diagram, and separate server work from network delay.Explore
- Latency & ThroughputSeparate how long one request takes from how much work a system finishes.Explore
- Napkin MathTurn daily activity into average load, peak assumptions and storage estimates.Explore
02. Scaling0/5
- Load BalancingRoute requests across healthy instances and see why shared state still matters.Explore
- CachingFollow cache hits, misses and invalidation while keeping SQL authoritative.Explore
- Vertical vs Horizontal ScalingCompare a larger machine with more instances, including the state and failure trade-offs.Explore
- Stateless ServicesFind hidden instance-local state before routing requests across replicas.Explore
- Content DeliveryTrace edge hits, origin misses and versioned asset updates.Explore
03. Data & storage0/11
- SQL vs NoSQLBegin with queries and invariants before selecting a storage label.Explore
- IndexesSee how an index avoids unnecessary reads and why it still has a write cost.Explore
- ReplicationSeparate durable copies, read scaling and the freshness a user observes.Explore
- Storage EnginesCompare page-oriented updates with log-structured writes and background maintenance.Explore
- ShardingChoose a routing key, then handle skew and operations spanning partitions.Explore
- Consistent HashingInspect a membership change and distinguish key movement from workload balance.Explore
- Unique IDs at ScaleCompare random IDs with structured IDs and protect generator identity and time.Explore
- CAP & ConsistencySpecify observable histories instead of treating consistency as a single switch.Explore
- Consensus & Leader ElectionSeparate leader election from the rules that preserve committed history.Explore
- Transactions & IsolationFollow a multi-record decision and see why atomic writes alone may not protect it.Explore
- Files & MediaSeparate object bytes, metadata and readiness before serving an upload.Explore
04. Communication0/3
- REST, RPC & GraphQLCompare resource APIs, RPC operations and graph queries against concrete client needs.Explore
- Pub/Sub & EventsDistinguish broadcasting an event from assigning one job to a competing worker.Explore
- Real-time UpdatesChoose polling, server-sent events or WebSockets and handle reconnect gaps.Explore
05. Reliability0/5
- Message QueuesSeparate accepting a job from completing it, then recover from worker failure.Explore
- Timeouts & RetriesBound waiting, classify failures and protect effects before retrying.Explore
- Redundancy & FailoverSeparate spare capacity, failure detection and authority to accept writes.Explore
- Rate LimitingDefine identity, accounting scope and failure behavior before rejecting requests.Explore
- ObservabilityUse metrics, traces and structured logs to investigate user-visible symptoms.Explore
06. Architecture0/4
- Monolith vs MicroservicesCompare in-process modules with independently deployed services and their operational costs.Explore
- Service Discovery & GatewaysResolve changing instance locations while handling stale membership and in-flight work.Explore
- Sagas & Distributed TransactionsTrack an order across services and define compensation for partially completed work.Explore
- Batch & Stream ProcessingCompare bounded input jobs with continuing streams, late data and recoverable checkpoints.Explore
07. Security0/3
- AuthenticationSeparate signing in from the authority to perform a business operation.Explore
- AuthorizationEnforce server-side permission checks even when callers alter URLs or roles change.Explore
- Encryption & SecretsDistinguish transport encryption, stored-data encryption and secret lifecycle management.Explore
08. Shipping0/2
09. Whole systems0/4
- HLD & LLDMove from requirements and architecture to concrete APIs, data and failure behavior.Explore
- Design a URL ShortenerSeparate creating a unique mapping from serving fast, policy-aware redirects.Explore
- Design a News FeedCompare computing a timeline on read with preparing entries when posts arrive.Explore
- Design a Chat SystemSeparate accepted messages, ordered history and each device’s catch-up position.Explore
GO DEEPER
Architecture patterns
Reusable approaches, failure modes and related practice.
Pattern library14 patterns
- Cache-asideLoad repeated reads into a cache while keeping SQL authoritative.Caching
- Queue-based load levelingBuffer bursts and let workers consume at a sustainable rate.Messaging
- Circuit breakerStop repeated calls to a failing dependency and probe recovery deliberately.Reliability
- Transactional outboxCommit a business change and its event record in one database transaction.Data consistency
- CQRS & materialized viewsSeparate commands from queries and build read models for the questions users ask.Data consistency
- SagaCoordinate local transactions and compensate completed business steps after failure.Data consistency
- Client–ServerSeparate the client experience from authoritative server decisions.Foundations
- Layered architectureGive presentation, application, domain and persistence distinct responsibilities.Application structure
- Publish–SubscribeDeliver one published event to independent subscriptions with their own progress.Messaging
- Pipeline · Pipes and filtersCompose transformations as stages with explicit input, output and recovery boundaries.Messaging
- Event-Driven architectureCoordinate reactions to facts through explicit event contracts and delivery semantics.System architecture
- MicroservicesChoose independently deployable business boundaries and explicit service-owned state.System architecture
- Event SourcingKeep domain events as the authoritative history and derive current state by replay.Data consistency
- Clean, Hexagonal & OnionCompare three ways to protect business rules through inward-facing source dependencies.Application structure

