// TOPIC

#interview

70 articles

◆◆IntermediateStripeSvix
01

Design a Webhook Delivery System

Design a webhook delivery system: fan-out queues, retries with backoff and jitter, HMAC signing, circuit breakers, and dead-letter redelivery at Stripe scale.

#interview#messaging#queues
18 min
◆◆◆AdvancedLangChainLangfuse
02

Design an LLM Observability Platform

Design an LLM observability platform: distributed tracing for multi-step LLM apps capturing every prompt, token count, and cost to debug failed agent runs.

#interview#ai#llm
32 min
◆◆◆AdvancedCloudflareOpenAI
03

Design an LLM Gateway (AI Gateway & Model Router)

Design an LLM gateway: one proxy in front of every model provider, with automatic failover, semantic caching, per-team budgets, and SSE streaming under 50 ms.

#interview#ai#llm
33 min
◆◆◆AdvancedOpenAIMeta
04

Design an LLM Fine-Tuning Platform

Design an LLM fine-tuning platform: dataset ingestion, LoRA/QLoRA/DPO training, fault-tolerant GPU scheduling, eval gating, and multi-LoRA serving.

#interview#ai#llm
39 min
◆◆◆AdvancedOpenAILangChain
05

Design an LLM Evaluation Platform

Design an LLM evaluation platform: offline eval with LLM-as-judge, CI regression gating, online production sampling, and human annotation at 450M evals/month.

#interview#ai#llm
31 min
◆◆◆AdvancedMicrosoftNeo4j
06

Design a GraphRAG System (Knowledge-Graph-Augmented Retrieval)

When vector RAG fails on multi-hop and corpus-wide questions, build a GraphRAG knowledge graph: entity extraction, Leiden communities, map-reduce global search.

#interview#ai#rag
29 min
◆◆◆AdvancedUberAirbnb
07

Design a Feature Store

Serve identical feature values to model training and online inference, eliminating training-serving skew at sub-10ms latency and millions of reads per second.

#interview#ai#mlops
28 min
◆◆◆AdvancedGoogleAWS
08

Design an Intelligent Document Processing Pipeline

Design a pipeline that turns millions of messy PDFs into validated structured JSON: OCR, LLM extraction, confidence routing, and build-vs-buy cost math.

#interview#ai#llm
33 min
◆◆◆AdvancedIntercomSierra
09

Design a Customer-Support AI Assistant

Design a production customer-support AI that deflects 40–60% of tickets with RAG, real-action tools, guardrails, and human handoff — hallucination under 2%.

#interview#ai#llm
35 min
◆◆◆AdvancedOpenAIDeepgram
10

Design a Realtime Voice AI Agent

Design a realtime voice AI agent for PSTN and WebRTC calls with sub-800ms voice-to-voice latency: cascade STT-LLM-TTS pipeline, turn detection, barge-in.

#interview#ai#llm
37 min
◆◆◆AdvancedNVIDIAMeta
11

Design an AI Guardrails & Safety System

Design an AI guardrails system that wraps every LLM call — blocking prompt injections, redacting PII, and catching toxic output — inside a 200 ms budget.

#interview#ai#llm
32 min
◆◆◆AdvancedGitHubCursor
12

Design an AI Coding Assistant (Copilot / Cursor)

Design an AI coding assistant: sub-200ms ghost-text completions plus an autonomous multi-file agent — the two-product architecture behind Copilot and Cursor.

#interview#ai#llm
31 min
◆◆◆AdvancedGoogleMeta
13

The ML / GenAI System Design Interview Framework

A 7-step, 45-minute framework for the ML and GenAI system design interview — from metric mapping and the feedback loop to the RAG-vs-fine-tune decision tree.

#interview#ai#ml
30 min
◆◆◆AdvancedPineconeGoogle
14

Design a Vector Database / Semantic Search Service

Index 1 billion 768-dimensional vectors and answer top-k similarity queries in under 20 ms — the ANN indexing, sharding, and filtering architecture behind Pinecone, Weaviate, and pgvector.

#interview#ai#vector-db
25 min
◆◆◆AdvancedOpenAIGoogle
15

Design a RAG (Retrieval-Augmented Generation) Pipeline

Design a RAG pipeline that grounds an LLM in 10M documents with sub-2-second, cited answers: ingestion, hybrid retrieval, reranking, generation, and eval.

#interview#ai#rag
30 min
◆◆◆AdvancedOpenAIAnthropic
16

Design an LLM Inference & Serving System

Serve token generation for a 70B-parameter model at scale — where KV cache, not FLOPs, caps concurrency and continuous batching is what separates good GPU utilization from terrible utilization.

#interview#ai#llm
27 min
◆◆◆AdvancedOpenAIAnthropic
17

Design an AI Agent Platform

Design an AI agent platform: durable checkpointed runs, idempotent tool calls, tiered memory, and per-tenant safety guardrails around an unreliable LLM core.

#interview#ai#agents
27 min
◆◆◆AdvancedElasticSplunk
18

Design a Centralized Log Aggregation System (ELK / Splunk)

Collect, store, and search logs from thousands of services. Collection agents, a buffered ingestion pipeline, time-based inverted indices, hot-warm-cold tiers, and cost control.

#interview#observability#search
29 min
◆◆◆AdvancedMetaAirbnb
19

Design a Large-Scale Data Pipeline (ETL / Batch + Streaming)

Move and transform petabytes from sources into a warehouse/lake for analytics. DAG orchestration, Spark shuffles, lake vs warehouse, and idempotent, replayable jobs.

#interview#big-data#data-engineering
28 min
◆◆◆AdvancedAmazonShopify
20

Design a Shopping Cart & Checkout System

Keep a cart consistent across devices, then check out without overselling or double-charging. The available-cart vs consistent-checkout split, inventory holds, and the order saga.

#interview#e-commerce#consistency
22 min
◆◆◆AdvancedMetaLinkedIn
21

Design a Social Graph Service (Facebook's TAO)

Serve billions of "who follows whom" reads over a graph of trillions of edges. The objects-and-associations model, a cache in front of sharded SQL, and the hot-vertex problem.

#interview#graphs#caching
24 min
◆◆◆AdvancedGoogleAuth0
22

Design an Authorization System (Google Zanzibar / RBAC / ReBAC)

Answer "can user U do action A on resource R?" globally, in milliseconds, consistently. RBAC vs ABAC vs ReBAC, Zanzibar relation tuples, and the new-enemy problem.

#interview#security#distributed-systems
25 min
◆◆◆AdvancedMetaGoogle
23

Design an A/B Testing & Experimentation Platform

Run thousands of controlled experiments at once. Deterministic bucketing, exposure logging, the metrics pipeline, statistical significance, and the peeking problem.

#interview#experimentation#analytics
24 min
◆◆◆AdvancedStripePayPal
24

Design a Real-Time Fraud Detection System

Score transactions for fraud inline in milliseconds. Feature stores, streaming velocity features, rules + ML hybrids, graph fraud rings, and the label-delay problem.

#interview#ml#streaming
26 min
◆◆◆AdvancedAmazonBooking
25

Design Ticketmaster (seat booking / reservations)

Sell limited inventory to a stampede of buyers without double-booking a seat. Reservation holds, a conditional-update concurrency guard, and the read-vs-write consistency split.

#interview#concurrency#inventory
24 min
◆◆◆AdvancedAmazonGoogle
26

Design a Distributed Job Scheduler (cron at scale)

Run millions of scheduled and recurring jobs reliably — at-least-once execution, leader election, sharded time-wheels, and exactly-once side effects via idempotency.

#interview#distributed-systems#scheduling
25 min
◆◆◆AdvancedGoogleUber
27

Design a Globally-Distributed SQL Database (Spanner / CockroachDB)

SQL transactions that are ACID across continents. How Spanner shards into Paxos groups, runs 2PC on top, and uses TrueTime to give you external consistency — the CP counterpart to Dynamo.

#interview#distributed-systems#databases
14 min
◆◆◆AdvancedPayPalBlock
28

Design a Digital Wallet (PayPal / Venmo / Paytm)

Hold balances, transfer money between users instantly, and never lose a cent. Double-entry ledgers, idempotent transfers, and strong consistency.

#interview#payments#consistency
28 min
◆◆◆AdvancedAmazonGoogle
29

Design an Object Storage Service (S3)

Store arbitrary blobs with HTTP GET/PUT at exabyte scale and 11 nines of durability. Metadata vs data separation, erasure coding, and self-healing.

#interview#storage#distributed-systems
25 min
◆◆◆AdvancedMetaGoogle
30

Design an Ad Click Aggregator (real-time analytics)

Ingest billions of ad events, serve per-minute metrics in near-real-time, and produce exact totals for billing — the canonical streaming + lambda/kappa problem.

#interview#streaming#analytics
24 min
◆◆◆AdvancedStripeAmazon
31

Design a Payment System (Stripe-style)

Move money correctly. Double-entry ledgers, idempotency keys, the authorize/capture/settle lifecycle, reconciliation, and why money never gets eventual consistency.

#interview#payments#consistency
23 min
◆◆◆AdvancedAmazonLinkedIn
32

Design a Distributed Message Queue (Kafka)

Build a durable, partitioned, replicated commit log like Kafka — ordering, consumer groups, replication (ISR), and exactly-once.

#interview#messaging#distributed-systems
22 min
◆◆IntermediateMetaYouTube
33

Design a Distributed Counter (view / like counts)

Count likes and views at millions of increments per second without a single hot row melting. Sharded counters, write batching, and approximate vs exact counts.

#interview#scale#consistency
22 min
◆◆IntermediateGoogleMicrosoft
34

Design a Calendar System (Google Calendar)

Store events, share calendars, find free slots, and fire reminders — across time zones and recurring rules. The RRULE expansion and free/busy problem.

#interview#scheduling#consistency
26 min
◆◆◆AdvancedElasticAmazon
35

Design a Distributed Search Engine (Elasticsearch)

Index billions of documents and answer full-text queries in milliseconds. Inverted indexes, sharding + replication, scatter-gather, and relevance scoring.

#interview#search#indexing
24 min
◆◆◆AdvancedGoogleMicrosoft
36

Design an Email Service (Gmail)

Send, receive, store, and search email for hundreds of millions of users. SMTP ingestion, sharded mailbox storage, full-text search, and spam filtering.

#interview#storage#search
25 min
◆◆◆AdvancedAirbnbBooking
37

Design a Hotel / Airbnb Booking System

Search available listings and book date ranges without double-booking. Availability as a range problem, reservation holds, and the search vs transaction split.

#interview#inventory#consistency
25 min
◆◆IntermediateLeetCodeHackerRank
38

Design an Online Code Judge (LeetCode)

Run untrusted user code safely against test cases at scale. Sandboxed execution, a judge worker queue, resource limits, and contest-time spikes.

#interview#sandboxing#queues
25 min
◆◆◆AdvancedTwitterMeta
39

Design Top-K / Trending (heavy hitters)

Find the top-K most frequent items in a massive stream without counting everything exactly. Count-Min Sketch, heavy-hitter algorithms, and approximate streaming aggregation.

#interview#streaming#probabilistic
24 min
◆◆◆AdvancedTwitchYouTube
40

Design a Live Streaming System (Twitch)

Ingest one broadcaster and fan out to millions of viewers with seconds of latency. Transcoding ladders, HLS/DASH segmenting, CDN fan-out, and live chat.

#interview#media#streaming
24 min
◆◆◆AdvancedAmazonAlibaba
41

Design a Flash Sale / Seckill System

Sell limited stock to a massive, spiky crowd without overselling. Atomic inventory decrement, request shedding, queues, and graceful degradation.

#interview#concurrency#inventory
23 min
◆◆IntermediateRiot GamesActivision
42

Design a Real-Time Leaderboard (gaming)

Rank millions of players by score and answer "top N" and "my rank" instantly. Redis sorted sets, sharding by score range, and approximate ranks at scale.

#interview#ranking#caching
23 min
◆◆◆AdvancedCloudflareAkamai
43

Design a Content Delivery Network (CDN)

Serve content from the edge, close to users, at massive scale. Request routing (anycast & DNS), cache hierarchies, invalidation, and origin shielding.

#interview#caching#networking
23 min
◆◆◆AdvancedGoogleAmazon
44

Design a Distributed Lock / Coordination Service (ZooKeeper / etcd)

Provide mutual exclusion and coordination across machines safely. Consensus-backed locks, leases, fencing tokens, and why a lock without fencing is unsafe.

#interview#distributed-systems#consensus
23 min
◆◆◆AdvancedNetflixAmazon
45

Design a Recommendation System (Netflix / TikTok)

Pick the best items for each user from millions of candidates in milliseconds. The two-stage candidate-generation + ranking architecture, embeddings, and feature stores.

#interview#ml#ranking
25 min
◆◆◆AdvancedZoomGoogle
46

Design a Video Conferencing System (Zoom)

Carry live audio/video among many participants with low latency. WebRTC, the SFU vs MCU vs mesh trade-off, simulcast, and adaptive bitrate.

#interview#realtime#media
23 min
◆◆◆AdvancedSlackMicrosoft
47

Design Slack (team chat at scale)

Channels, threads, presence, and search across huge workspaces. Real-time fan-out over WebSockets, the gateway problem, and read-state per user.

#interview#realtime#messaging
26 min
◆◆◆AdvancedBloombergCitadel
48

Design a Stock Exchange (matching engine)

Match buy and sell orders deterministically with microsecond latency and perfect fairness. The single-threaded matching engine, the order book, and event sourcing for recovery.

#interview#low-latency#consistency
23 min
◆◆◆AdvancedDatadogGoogle
49

Design a Metrics & Monitoring System (Prometheus / Datadog)

Ingest billions of time-series points, store them cheaply, and answer dashboard + alerting queries fast. TSDB internals, cardinality, downsampling, and pull vs push.

#interview#observability#time-series
26 min
◆◆◆AdvancedByteDanceMeta
50

Design TikTok / Reels (short-video platform)

Design TikTok's For You Page: two-tower retrieval, Monolith real-time ranking, and preloading that keeps swipe-to-play under 200ms at billion-user scale.

#interview#video#recommendation
24 min
◆◆◆AdvancedGoogleMeta
51

Design a Distributed File System (GFS / HDFS)

Store petabyte files across thousands of commodity machines for high-throughput batch reads. The single-master + chunkservers design, replication, and append-heavy workloads.

#interview#storage#distributed-systems
25 min
◆◆◆AdvancedGoogleMicrosoft
52

Design Google Docs (real-time collaborative editor)

Design a real-time collaborative editor like Google Docs: Operational Transformation, the Jupiter model, CRDTs, doc sharding, presence, and offline sync.

#interview#realtime#collaboration
22 min
◆◆◆AdvancedGoogleUber
53

Design Google Maps (routing & navigation)

Find the fastest route across a continent-scale road graph in milliseconds, with live traffic and ETAs. Contraction hierarchies, live traffic weights, and tile serving.

#interview#geo#graphs
24 min
BeginnerMetaGoogle
54

How to Approach a System Design Interview

A repeatable 45-minute framework — requirements, estimation, high-level design, deep dives, bottlenecks — and the moves that separate a hire from a no-hire.

#interview#process#fundamentals
13 min
◆◆◆AdvancedAmazonMeta
55

Design a Distributed Key-Value Store (Dynamo)

Build your own DynamoDB / Cassandra. Sharding, replication, quorum reads/writes, vector clocks, conflict resolution.

#interview#distributed-systems#storage
22 min
◆◆IntermediateTwitterDiscord
56

Design a Distributed Unique ID Generator

How Twitter/Discord/Instagram generate billions of unique IDs per day with no central coordinator. UUIDs, snowflake, ULIDs.

#interview#distributed-systems#identifiers
19 min
◆◆IntermediateGoogleYelp
57

Design Yelp / Nearby Search (proximity service)

Find restaurants/businesses near a location, fast. Geohash, quadtree, hexagonal cells, and the right index for "within 5 km of me".

#interview#geo#search
19 min
◆◆◆AdvancedMetaInstagram
58

Design Instagram (photo sharing)

A photo-first social network — uploads, image processing, feed, stories, and global delivery.

#interview#feed#storage
21 min
◆◆◆AdvancedGoogleDropbox
59

Design Google Drive / Dropbox

File sync that works on every device, blob storage, deduplication, conflict resolution, and how to do all of it efficiently.

#interview#storage#sync
23 min
◆◆IntermediateMetaGoogle
60

Design a Notification System (Push, Email, SMS)

A reliable multi-channel notification platform — fanout, templates, dedup, rate limiting, and the realities of APNS/FCM.

#interview#notifications#messaging
18 min
◆◆◆AdvancedMetaAmazon
61

Design a Distributed Cache (like Memcached)

A cache that scales across hundreds of nodes — consistent hashing, replication, eviction, and the operational problems you'll meet.

#interview#caching#distributed-systems
19 min
◆◆IntermediateGoogleAmazon
62

Design Search Autocomplete (Typeahead)

Sub-100ms autocomplete suggestions across billions of queries — tries, top-k caching, and personalized ranking.

#interview#search#trie
20 min
◆◆◆AdvancedGoogleMicrosoft
63

Design a Web Crawler (Googlebot)

Crawl billions of URLs at petabyte scale. URL frontier, politeness, deduplication, 4xx/dead-link handling, and the realities of indexing the web.

#interview#crawling#distributed-systems
19 min
◆◆◆AdvancedUberLyft
64

Design Uber / Lyft (ride hailing)

Match drivers to riders in real time at city scale. Geohashing, dispatch algorithms, surge pricing, and the realtime location pipeline.

#interview#geo#realtime
20 min
◆◆◆AdvancedGoogleNetflix
65

Design YouTube / Netflix (video streaming)

How a billion users watch ~1 billion hours of video a day. Upload pipeline, transcoding, adaptive bitrate, CDN, recommendation.

#interview#video#cdn
19 min
◆◆◆AdvancedMetaDiscord
66

Design WhatsApp / Chat System

Realtime 1:1 and group messaging at billions-of-users scale. WebSocket gateways, message store, presence, end-to-end encryption.

#interview#realtime#websocket
18 min
◆◆◆AdvancedMetaInstagram
67

Design a News Feed (Facebook / Instagram)

How feed systems like Meta's build the home feed — fanout, ranking, candidate generation, and how the same architecture serves billions.

#interview#feed#fanout
19 min
◆◆IntermediateStripeCloudflare
68

Design a Rate Limiter

Token bucket, leaky bucket, fixed window, sliding window — and the distributed Redis-based limiter you can copy into production.

#interview#rate-limiting#distributed-systems
17 min
◆◆◆AdvancedMetaTwitter
69

Design Twitter / X (the home timeline)

500M users, 500M tweets/day, p99 feed loads under 200ms. The fanout-on-write vs fanout-on-read trade-off that defines the system.

#interview#feed#fanout
18 min
BeginnerGoogleAmazon
70

Design a URL Shortener (TinyURL / bit.ly)

A classic FAANG warmup. Generate short codes, store them, redirect fast, scale to billions of URLs.

#interview#hashing#caching
16 min