Explore the curriculum
01In a Hurry
A system design interview asks you to make useful decisions while the problem is still incomplete.
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.
A fresher-to-staff interview guide: clarification questions, a 45-minute answer sequence, invariants, failures and role-specific evidence.
A complete interview framework with a worked notification design.
Use core concepts as tools for explaining a workload, not as vocabulary to recite.
Follow one video from a durable upload request to verified playback, and see where each technology role fits.
Patterns are reusable responses to recurring constraints.
A question breakdown is a worked example of the delivery framework, not a diagram to memorize.
02Core Concepts
Trace what changes between a cold HTTPS request, a reused connection, and a regional path.
An API is a promise between independently failing programs.
Build a notification data model from requirements, real records and queries; compare storage families and defend its failure behavior.
A cache stores a reusable answer closer to the caller or cheaper than the source.
Sharding divides data across independent storage owners so one machine does not need to hold or process everything.
A placement rule should not move nearly every key whenever membership changes.
CAP concerns what a distributed system can guarantee while communication is partitioned.
An index is an extra access path that trades storage and write work for less read work.
Estimation is a way to expose constraints, not a memory contest about hardware constants.
Separate durable acknowledgement, read visibility and safe promotion through a concrete replica history.
Predict write skew, enforce a shared invariant and retry whole transactions safely.
Scope operation identities, couple deduplication to effects and resolve uncertain provider outcomes.
Trace majority authority and reject a paused obsolete worker at the protected destination.
Recover publication gaps, duplicate deliveries and uncertain compensation using durable business state.
Bound deadlines, queues, concurrency and retry work; calculate safe admission and recovery.
Define measurable user outcomes, calculate error budgets and diagnose finite-capacity failures with safe telemetry.
Enforce trusted tenant, object and field permissions across APIs, caches, projections and asynchronous work.
Choose clock and identity semantics, trace causal ordering and preserve identifier uniqueness across rollback and restart.
Connect access paths to durable acknowledgement, version retention, amplification and verified recovery.
Test mixed-version contracts, semantic meaning, retained replay and identity-preserving rollout or rollback.
A Bloom filter is a compact probabilistic set-membership structure. It answers definitely absent or possibly present; a positive never proves membership.
Network behavior is a chain of independently failing boundaries, not a single request hop.
Database performance follows physical access paths and storage-engine behavior, not the database label.
Partitioning divides data ownership; replication copies data. Sharding is a distributed partitioning strategy, not a synonym for replication.
Consistency is an operation-level promise about what callers observe after concurrent updates and failures.
Messaging systems differ in retention, consumer ownership, ordering, replay and acknowledgement semantics.
03Question Breakdowns
Create and resolve unique short links with bounded revocation, safe retries, and optional analytics.
Design file upload and synchronization with separate metadata and bytes.
Design a service that matches customers placing local orders with couriers, tracks pickup and delivery, and communicates changes.
The hard part of a ticket sale is scarce inventory under a burst, not drawing a payment box.
Design a feed from posts and a follow graph, with ranking, pagination, deletion, and privacy.
Design a location-aware discovery and matching service with profile cards, likes, mutual matches, and messaging handoff.
Design an online code judge that executes untrusted submissions.
Design a messaging service around three separate facts: the server accepted a message, a device received it, and a person read it.
Design an admission control service that limits requests by a documented identity and time policy.
Design video upload, processing, and playback as distinct lifecycles.
Design comments for a live video room.
Find the most viewed videos over a time range, such as the top 100 during the last hour.
Design ride matching by separating approximate discovery from exclusive assignment.
A crawler is a scheduler with a fetch-and-discover loop.
Count ad clicks per campaign and time window while accepting retries, late arrivals, and reprocessing.
Design search across posts while respecting audience visibility, deletion, and recent edits.
Design nearby business search with text, category, and geographic filters.
Design photo publishing, processing, and a personalized home feed.
Record routes offline, reconcile idempotent uploads, and publish versioned privacy-safe activity and segment views.
Bound memory, TTL, routing, migration, and refill work for a disposable distributed cache.
An auction needs an authoritative rule for bid acceptance and closing.
Design a service that runs delayed and recurring jobs with retries, cancellation, and multiple worker regions.
Design a personalized list of articles collected from publishers.
Design price history and threshold alerts for products collected from merchant pages or feeds.
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.
Design a brokerage-style order and portfolio service for an interview.
Design collaborative editing for a shared document with low-latency updates, offline clients, reconnect, and durable snapshots.
A payment service must represent uncertainty without creating another charge.
A monitoring platform ingests time series, stores recent and historical samples, serves queries, and evaluates alerts.
Design turn-based online chess with authoritative legal moves, clocks, reconnects, and game history.
Design a conversational AI product at the platform level: accepting turns, streaming generated output, managing conversation context, routing inference, and enforcing usage budgets.
Design a high-demand sale for a limited inventory item.
Design Netflix or Prime Video on-demand playback: ingestion, manifests, adaptive bitrate, CDN, rights and recovery.
Design Hotstar or Prime Video live sports: live latency, kickoff traffic, DVR, publisher fencing and multi-CDN recovery.
Design Splitwise expense sharing: exact money splits, balanced ledger, concurrent edits, idempotency and confirmed settlements.
Allocate a compatible space, issue a ticket, calculate a fee and release the space without double allocation.
Manage book copies, fair reservations, loans and returns with one active holder per physical copy.
Support private tasks with editable deadlines and reminders that survive restarts without sending obsolete schedules.
Create expiring text shares with predictable access control, efficient reads and safe deletion.
Accept one eligible vote per person in an event and publish counts without counting request retries twice.
Track store stock changes, sell items and reconcile physical counts without allowing concurrent sales to create negative availability.
Return fast prefix suggestions that combine a stable vocabulary with recent trending queries while controlling abuse and freshness.
Turn a mutable shopping cart into one durable order while protecting inventory, payment identity and price agreement under retries.
Schedule durable background work with priorities, bounded retries, tenant fairness and explicit dead-letter recovery.
Collect structured application logs into searchable storage with bounded agent buffers, explicit loss policy and affordable retention.
Post balanced immutable financial entries, prevent duplicate business postings and recover safely across regional and provider failures.
Build a Kafka-like partitioned replicated log with ordered partitions, producer retry identity, consumer ownership and replay.
Serve globally cached objects while propagating invalidations with a defined freshness objective and observable exceptions.
Maintain a near-real-time searchable index over mutable documents with permission checks, deletion semantics and safe rebuilds.
Serve personalized recommendations to 100 million users through bounded retrieval, ranking and policy stages with measurable fallback behavior.
Evolve a petabyte-scale database while old and new application versions coexist, with resumable backfill and a real rollback boundary.
Recover a complete workload in another region within measured RPO and RTO objectives while preventing split-brain writes.
Serve multiple model versions under tenant cost, token, latency and GPU-memory budgets with bounded admission and streaming recovery semantics.
Deliver each published event independently to every matching durable subscription while isolating slow or failing consumers.
Store large immutable objects with durable metadata, resumable transfer, integrity verification and safe garbage collection.
Serve map tiles, place search and traffic-aware routes while separating geographic data versions from rapidly changing traffic.
Answer support questions from permitted evidence and safely hand off or execute authorized account actions with traceable outcomes.
Ingest and process short videos, deliver a low-latency personalized feed and enforce deletion across recommendations and media caches.
Support text posts, threaded replies, voting and community feeds with predictable moderation and hot-thread behavior.
04Patterns
Real-time is a freshness requirement, not a transport name.
Contention occurs when concurrent operations compete over the same mutable fact.
A business process that crosses databases or external services cannot usually be rolled back like one local transaction.
Read scaling is a sequence of decisions about cost and freshness.
A write path is limited by the slowest sustained stage, not by the length of its queue.
Large files should not usually pass through application workers that only need to authorize and track them.
Long tasks outlive ordinary HTTP requests and often outlive the process that started them.
Resilience patterns protect finite capacity, but their interaction can amplify load when applied independently.
Backpressure makes producers respect downstream capacity; load shedding rejects work that cannot be served within its value or deadline.
Rate limiting controls how much work a caller consumes over time; fair scheduling decides which eligible work runs next.
CQRS separates command-side invariants from read-side projections; a materialized view is derived state optimized for a query.
A saga coordinates business steps across independent transactional boundaries; compensation is a new business action, not a database rollback.
05Key Technologies
Redis offers in-memory data structures that can make shared counters, caches, rankings, and short-lived coordination convenient.
Search engines organize text and other fields for retrieval rather than ordinary transactional ownership.
Kafka is a partitioned durable log.
Temporal is a workflow platform for durable application processes that must wait, retry, and resume across worker failure.
An API gateway is an edge entry point for routing and selected cross-cutting policies.
Cassandra encourages query-first modeling: design tables around known access patterns and bounded partitions.
DynamoDB is a managed key-value/document database whose efficient access depends on known partition and sort key patterns.
PostgreSQL is useful when relationships, constraints, and transactional state transitions matter.
Flink processes unbounded and bounded event streams with stateful operators, event-time windows, and checkpoint recovery.
ZooKeeper coordinates small amounts of critical shared state using an ordered replicated service and client sessions.
Kafka is a partitioned retained log; RabbitMQ is a routing-oriented broker; SQS/SNS are managed queue and pub/sub primitives.
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.
Relational, key-value and wide-column databases optimize different query and consistency models; compare them using concrete access patterns.
Kubernetes orchestrates containers through declarative desired state, controllers and a cluster scheduler.
Reverse proxies and service proxies route traffic, manage connections and enforce cross-cutting network policy.
Object storage keeps large immutable or versioned bytes outside the transactional API tier; a CDN caches eligible representations near users.
06Advanced Topics
Advanced topics help when a baseline design hits a specialized data or scale constraint.
Proximity search asks for objects near a point, but the best index depends on whether objects are static businesses or rapidly moving drivers.
A time-series system stores measurements keyed by time and one or more dimensions.
Approximate data structures trade a stated error for lower memory or communication.
Vector retrieval finds items whose embeddings are close under a chosen distance function.
Change data capture (CDC) publishes database changes for downstream projections and event consumers.
Cuckoo filters store compact fingerprints in buckets and support deletion, making them an alternative to Bloom filters for some membership workloads.
HyperLogLog estimates distinct element count with small memory by combining hashed observations into registers.
Count-Min Sketch estimates item frequency using compact counter arrays; collisions make its basic estimates overestimate nonnegative frequencies.
A Merkle tree summarizes data ranges with hashes so replicas can locate divergent portions without transferring every record.
CRDTs and causal metadata help replicas converge under concurrent updates, but the merge rule must preserve product semantics.
Consensus establishes a replicated decision under explicit majority assumptions; gossip disseminates membership and state but is not consensus.
Tail latency dominates user experience when a request waits on many dependencies or fans out to many workers.
Service discovery finds candidate endpoints; failure detectors estimate reachability; distributed locks coordinate ownership. These are distinct responsibilities.
Quantile sketches estimate distribution percentiles using bounded memory; they do not store every sample or make independent percentile values additive.
Distributed transactions coordinate a decision across participants; two-phase commit can block when the coordinator or required participants are unavailable.
Eventually consistent databases use repair mechanisms to converge replicas; repair correctness depends on versioning, tombstone retention and anti-entropy.
07In the Wild
Read production engineering posts as evidence with a scope and date.
Shopify’s account describes replacing Redis reservations with MySQL.
Discord’s account describes moving its message store from Cassandra to ScyllaDB and adding Rust data services.
Slack describes a Redis queue outage caused by backlog and memory pressure.
Figma describes a centralized collaboration design inspired by CRDTs, not operational transformation.
Spotify’s RAP account describes an external index that maps lookup keys to files and row locations in existing Parquet data.
Meta describes ZGateway as a managed proxy tier before ZippyDB.