Learning pathsPricingChecking sign-in…
THE LEARNING PATH

System Design

Build systems. Explain the trade-offs.

145 learning activities·0% complete

Explore the curriculum

01In a Hurry

Introduction

A system design interview asks you to make useful decisions while the problem is still incomplete.

11 min
How to Prepare

Preparation works best as a loop: learn one mechanism, retrieve it from memory, apply it to a new prompt, and review where your explanation failed.

13 min
Interview Playbook

A fresher-to-staff interview guide: clarification questions, a 45-minute answer sequence, invariants, failures and role-specific evidence.

15 min
Delivery Framework

A complete interview framework with a worked notification design.

26 min
Core Concepts Overview

Use core concepts as tools for explaining a workload, not as vocabulary to recite.

10 min
Key Technologies Overview

Follow one video from a durable upload request to verified playback, and see where each technology role fits.

10 min
Common Patterns Overview

Patterns are reusable responses to recurring constraints.

9 min
Question Breakdowns Overview

A question breakdown is a worked example of the delivery framework, not a diagram to memorize.

16 min

02Core Concepts

Networking Essentials

Trace what changes between a cold HTTPS request, a reused connection, and a regional path.

22 min
API Design

An API is a promise between independently failing programs.

13 min
Data Modeling

Build a notification data model from requirements, real records and queries; compare storage families and defend its failure behavior.

33 min
Caching

A cache stores a reusable answer closer to the caller or cheaper than the source.

13 min
Sharding

Sharding divides data across independent storage owners so one machine does not need to hold or process everything.

10 min
Consistent Hashing

A placement rule should not move nearly every key whenever membership changes.

10 min
CAP Theorem

CAP concerns what a distributed system can guarantee while communication is partitioned.

28 min
Database Indexing

An index is an extra access path that trades storage and write work for less read work.

12 min
Numbers to Know

Estimation is a way to expose constraints, not a memory contest about hardware constants.

11 min
Replication, Durability and Failover

Separate durable acknowledgement, read visibility and safe promotion through a concrete replica history.

18 min
Transactions and Isolation

Predict write skew, enforce a shared invariant and retry whole transactions safely.

18 min
Idempotency and Delivery Semantics

Scope operation identities, couple deduplication to effects and resolve uncertain provider outcomes.

18 min
Consensus, Leader Election and Fencing

Trace majority authority and reject a paused obsolete worker at the protected destination.

18 min
Outbox, Inbox, Sagas and Reconciliation

Recover publication gaps, duplicate deliveries and uncertain compensation using durable business state.

18 min
Reliability and Overload Control

Bound deadlines, queues, concurrency and retry work; calculate safe admission and recovery.

18 min
SLOs, Observability and Capacity

Define measurable user outcomes, calculate error budgets and diagnose finite-capacity failures with safe telemetry.

18 min
Security and Tenant Isolation

Enforce trusted tenant, object and field permissions across APIs, caches, projections and asynchronous work.

18 min
Time, Ordering and Identifiers

Choose clock and identity semantics, trace causal ordering and preserve identifier uniqueness across rollback and restart.

18 min
Storage Engines and Index Mechanics

Connect access paths to durable acknowledgement, version retention, amplification and verified recovery.

18 min
Schema, API and Event Evolution

Test mixed-version contracts, semantic meaning, retained replay and identity-preserving rollout or rollback.

18 min
Bloom Filters and Membership Testing

A Bloom filter is a compact probabilistic set-membership structure. It answers definitely absent or possibly present; a positive never proves membership.

18 min
Networking: DNS, TCP, TLS and HTTP

Network behavior is a chain of independently failing boundaries, not a single request hop.

18 min
Database Engines and Write Amplification

Database performance follows physical access paths and storage-engine behavior, not the database label.

18 min
Partitioning, Sharding and Replication

Partitioning divides data ownership; replication copies data. Sharding is a distributed partitioning strategy, not a synonym for replication.

18 min
Consistency Models and Quorums

Consistency is an operation-level promise about what callers observe after concurrent updates and failures.

18 min
Messaging Semantics: Queues, Logs and Pub/Sub

Messaging systems differ in retention, consumer ownership, ordering, replay and acknowledgement semantics.

18 min

03Question Breakdowns

Bitly

Create and resolve unique short links with bounded revocation, safe retries, and optional analytics.

REVIEW36 min
Dropbox

Design file upload and synchronization with separate metadata and bytes.

REVIEW38 min
Local Delivery Service

Design a service that matches customers placing local orders with couriers, tracks pickup and delivery, and communicates changes.

23 min
Ticketmaster

The hard part of a ticket sale is scarce inventory under a burst, not drawing a payment box.

REVIEW22 min
FB News Feed

Design a feed from posts and a follow graph, with ranking, pagination, deletion, and privacy.

REVIEW22 min
Tinder

Design a location-aware discovery and matching service with profile cards, likes, mutual matches, and messaging handoff.

22 min
LeetCode

Design an online code judge that executes untrusted submissions.

REVIEW22 min
WhatsApp

Design a messaging service around three separate facts: the server accepted a message, a device received it, and a person read it.

21 min
Rate Limiter

Design an admission control service that limits requests by a documented identity and time policy.

22 min
YouTube

Design video upload, processing, and playback as distinct lifecycles.

24 min
FB Live Comments

Design comments for a live video room.

REVIEW21 min
YouTube Top K

Find the most viewed videos over a time range, such as the top 100 during the last hour.

23 min
Uber

Design ride matching by separating approximate discovery from exclusive assignment.

23 min
Web Crawler

A crawler is a scheduler with a fetch-and-discover loop.

22 min
Ad Click Aggregator

Count ad clicks per campaign and time window while accepting retries, late arrivals, and reprocessing.

REVIEW22 min
FB Post Search

Design search across posts while respecting audience visibility, deletion, and recent edits.

22 min
Yelp

Design nearby business search with text, category, and geographic filters.

REVIEW22 min
Instagram

Design photo publishing, processing, and a personalized home feed.

21 min
Strava

Record routes offline, reconcile idempotent uploads, and publish versioned privacy-safe activity and segment views.

30 min
Distributed Cache

Bound memory, TTL, routing, migration, and refill work for a disposable distributed cache.

27 min
Online Auction

An auction needs an authoritative rule for bid acceptance and closing.

26 min
Job Scheduler

Design a service that runs delayed and recurring jobs with retries, cancellation, and multiple worker regions.

26 min
News Aggregator

Design a personalized list of articles collected from publishers.

31 min
Price Tracking Service

Design price history and threshold alerts for products collected from merchant pages or feeds.

31 min
Notification System

Design a multi-tenant notification service for transactional alerts and bulk campaigns across email, SMS, and push. Show durable acceptance, frozen audience expansion, fair bounded dispatch, and the lifecycle through a reconciled outcome.

PRACTICE30 min
Robinhood

Design a brokerage-style order and portfolio service for an interview.

30 min
Google Docs

Design collaborative editing for a shared document with low-latency updates, offline clients, reconnect, and durable snapshots.

34 min
Payment System

A payment service must represent uncertainty without creating another charge.

31 min
Metrics Monitoring

A monitoring platform ingests time series, stores recent and historical samples, serves queries, and evaluates alerts.

29 min
Online Chess

Design turn-based online chess with authoritative legal moves, clocks, reconnects, and game history.

29 min
ChatGPT

Design a conversational AI product at the platform level: accepting turns, streaming generated output, managing conversation context, routing inference, and enforcing usage budgets.

31 min
Flash Sale

Design a high-demand sale for a limited inventory item.

29 min
Video Streaming

Design Netflix or Prime Video on-demand playback: ingestion, manifests, adaptive bitrate, CDN, rights and recovery.

17 min
Live Video Streaming

Design Hotstar or Prime Video live sports: live latency, kickoff traffic, DVR, publisher fencing and multi-CDN recovery.

16 min
Splitwise

Design Splitwise expense sharing: exact money splits, balanced ledger, concurrent edits, idempotency and confirmed settlements.

17 min
Parking Lot

Allocate a compatible space, issue a ticket, calculate a fee and release the space without double allocation.

13 min
Library Management

Manage book copies, fair reservations, loans and returns with one active holder per physical copy.

13 min
To-do Reminders

Support private tasks with editable deadlines and reminders that survive restarts without sending obsolete schedules.

13 min
Pastebin

Create expiring text shares with predictable access control, efficient reads and safe deletion.

13 min
Event Voting

Accept one eligible vote per person in an event and publish counts without counting request retries twice.

14 min
Inventory Tracker

Track store stock changes, sell items and reconcile physical counts without allowing concurrent sales to create negative availability.

14 min
Search Autocomplete

Return fast prefix suggestions that combine a stable vocabulary with recent trending queries while controlling abuse and freshness.

14 min
Cart and Checkout

Turn a mutable shopping cart into one durable order while protecting inventory, payment identity and price agreement under retries.

13 min
Priority Job Queue

Schedule durable background work with priorities, bounded retries, tenant fairness and explicit dead-letter recovery.

13 min
Centralized Logging

Collect structured application logs into searchable storage with bounded agent buffers, explicit loss policy and affordable retention.

14 min
Global Payments Ledger

Post balanced immutable financial entries, prevent duplicate business postings and recover safely across regional and provider failures.

13 min
Distributed Message Queue

Build a Kafka-like partitioned replicated log with ordered partitions, producer retry identity, consumer ownership and replay.

15 min
Global CDN

Serve globally cached objects while propagating invalidations with a defined freshness objective and observable exceptions.

14 min
Distributed Search

Maintain a near-real-time searchable index over mutable documents with permission checks, deletion semantics and safe rebuilds.

14 min
Recommendation Serving

Serve personalized recommendations to 100 million users through bounded retrieval, ranking and policy stages with measurable fallback behavior.

15 min
Zero-downtime Schema Migration

Evolve a petabyte-scale database while old and new application versions coexist, with resumable backfill and a real rollback boundary.

16 min
Multi-region Disaster Recovery

Recover a complete workload in another region within measured RPO and RTO objectives while preventing split-brain writes.

16 min
LLM Inference Platform

Serve multiple model versions under tenant cost, token, latency and GPU-memory budgets with bounded admission and streaming recovery semantics.

17 min
Distributed Pub-Sub

Deliver each published event independently to every matching durable subscription while isolating slow or failing consumers.

14 min
Distributed Blob Store

Store large immutable objects with durable metadata, resumable transfer, integrity verification and safe garbage collection.

14 min
Google Maps

Serve map tiles, place search and traffic-aware routes while separating geographic data versions from rapidly changing traffic.

16 min
Customer Support Bot

Answer support questions from permitted evidence and safely hand off or execute authorized account actions with traceable outcomes.

16 min
Short Video Feed

Ingest and process short videos, deliver a low-latency personalized feed and enforce deletion across recommendations and media caches.

15 min
Discussion Platform

Support text posts, threaded replies, voting and community feeds with predictable moderation and hot-thread behavior.

16 min

04Patterns

Real-time Updates

Real-time is a freshness requirement, not a transport name.

10 min
Dealing with Contention

Contention occurs when concurrent operations compete over the same mutable fact.

10 min
Multi-step Processes

A business process that crosses databases or external services cannot usually be rolled back like one local transaction.

10 min
Scaling Reads

Read scaling is a sequence of decisions about cost and freshness.

10 min
Scaling Writes

A write path is limited by the slowest sustained stage, not by the length of its queue.

10 min
Handling Large Blobs

Large files should not usually pass through application workers that only need to authorize and track them.

10 min
Managing Long Running Tasks

Long tasks outlive ordinary HTTP requests and often outlive the process that started them.

10 min
Circuit Breaker, Bulkhead and Retry

Resilience patterns protect finite capacity, but their interaction can amplify load when applied independently.

18 min
Backpressure and Load Shedding

Backpressure makes producers respect downstream capacity; load shedding rejects work that cannot be served within its value or deadline.

18 min
Rate Limiting and Fair Scheduling

Rate limiting controls how much work a caller consumes over time; fair scheduling decides which eligible work runs next.

18 min
CQRS and Materialized Views

CQRS separates command-side invariants from read-side projections; a materialized view is derived state optimized for a query.

18 min
Saga and Reconciliation

A saga coordinates business steps across independent transactional boundaries; compensation is a new business action, not a database rollback.

18 min

05Key Technologies

Redis

Redis offers in-memory data structures that can make shared counters, caches, rankings, and short-lived coordination convenient.

12 min
Elasticsearch

Search engines organize text and other fields for retrieval rather than ordinary transactional ownership.

10 min
Kafka

Kafka is a partitioned durable log.

10 min
Temporal

Temporal is a workflow platform for durable application processes that must wait, retry, and resume across worker failure.

10 min
API Gateway

An API gateway is an edge entry point for routing and selected cross-cutting policies.

9 min
Cassandra

Cassandra encourages query-first modeling: design tables around known access patterns and bounded partitions.

10 min
DynamoDB

DynamoDB is a managed key-value/document database whose efficient access depends on known partition and sort key patterns.

10 min
PostgreSQL

PostgreSQL is useful when relationships, constraints, and transactional state transitions matter.

10 min
Flink

Flink processes unbounded and bounded event streams with stateful operators, event-time windows, and checkpoint recovery.

10 min
ZooKeeper

ZooKeeper coordinates small amounts of critical shared state using an ordered replicated service and client sessions.

10 min
Kafka, RabbitMQ and SQS/SNS

Kafka is a partitioned retained log; RabbitMQ is a routing-oriented broker; SQS/SNS are managed queue and pub/sub primitives.

18 min
Redis: Cache and Data Structures

Redis is an in-memory data-structure server used for caching, counters, coordination hints and streams; its role must be explicit in the source-of-truth model.

18 min
PostgreSQL, DynamoDB and Cassandra

Relational, key-value and wide-column databases optimize different query and consistency models; compare them using concrete access patterns.

18 min
Kubernetes: Scheduling, Health and Autoscaling

Kubernetes orchestrates containers through declarative desired state, controllers and a cluster scheduler.

18 min
NGINX, Envoy and Service Mesh

Reverse proxies and service proxies route traffic, manage connections and enforce cross-cutting network policy.

18 min
Object Storage and CDN Delivery

Object storage keeps large immutable or versioned bytes outside the transactional API tier; a CDN caches eligible representations near users.

18 min

06Advanced Topics

Advanced Topics Overview

Advanced topics help when a baseline design hits a specialized data or scale constraint.

9 min
Proximity Search

Proximity search asks for objects near a point, but the best index depends on whether objects are static businesses or rapidly moving drivers.

10 min
Time Series Databases

A time-series system stores measurements keyed by time and one or more dimensions.

10 min
Data Structures for Big Data

Approximate data structures trade a stated error for lower memory or communication.

11 min
Vector Databases

Vector retrieval finds items whose embeddings are close under a chosen distance function.

11 min
Change Data Capture

Change data capture (CDC) publishes database changes for downstream projections and event consumers.

10 min
Cuckoo Filters

Cuckoo filters store compact fingerprints in buckets and support deletion, making them an alternative to Bloom filters for some membership workloads.

18 min
HyperLogLog and Cardinality Estimation

HyperLogLog estimates distinct element count with small memory by combining hashed observations into registers.

18 min
Count-Min Sketch and Heavy Hitters

Count-Min Sketch estimates item frequency using compact counter arrays; collisions make its basic estimates overestimate nonnegative frequencies.

18 min
Merkle Trees and Anti-Entropy

A Merkle tree summarizes data ranges with hashes so replicas can locate divergent portions without transferring every record.

18 min
CRDTs, Vector Clocks and Causal Ordering

CRDTs and causal metadata help replicas converge under concurrent updates, but the merge rule must preserve product semantics.

18 min
Consensus, Raft and Gossip

Consensus establishes a replicated decision under explicit majority assumptions; gossip disseminates membership and state but is not consensus.

18 min
Tail Latency and Hedged Requests

Tail latency dominates user experience when a request waits on many dependencies or fans out to many workers.

18 min
Service Discovery, Heartbeats and Fencing

Service discovery finds candidate endpoints; failure detectors estimate reachability; distributed locks coordinate ownership. These are distinct responsibilities.

18 min
Quantile Sketches and Percentile Metrics

Quantile sketches estimate distribution percentiles using bounded memory; they do not store every sample or make independent percentile values additive.

18 min
Distributed Transactions and Two-Phase Commit

Distributed transactions coordinate a decision across participants; two-phase commit can block when the coordinator or required participants are unavailable.

18 min
Read Repair, Hinted Handoff and Tombstones

Eventually consistent databases use repair mechanisms to converge replicas; repair correctness depends on versioning, tombstone retention and anti-entropy.

18 min

07In the Wild

All Posts

Read production engineering posts as evidence with a scope and date.

10 min
Shopify Inventory Reservations

Shopify’s account describes replacing Redis reservations with MySQL.

9 min
Discord Message Storage

Discord’s account describes moving its message store from Cassandra to ScyllaDB and adding Rust data services.

8 min
Slack Job Queue

Slack describes a Redis queue outage caused by backlog and memory pressure.

9 min
Figma Multiplayer

Figma describes a centralized collaboration design inspired by CRDTs, not operational transformation.

9 min
Spotify Data Lake

Spotify’s RAP account describes an external index that maps lookup keys to files and row locations in existing Parquet data.

9 min
Meta ZGateway

Meta describes ZGateway as a managed proxy tier before ZippyDB.

8 min