System design study guides
Interview-ready walkthroughs for 49 problems: requirements, estimation, API, data model, deep dives, trade-offs, failure modes and the follow-ups interviewers ask.
Ready to test yourself? Start a timed mock interview with an AI interviewer and a staff-level scorecard.
Web Apps
- URL ShortenerRead-heavy service that maps short slugs to long URLs at billions of lookups per day.
- Social Feed (Twitter / Instagram)Hybrid fan-out — push for normal users, pull-on-read for celebrities.
- Autocomplete / TypeaheadSub-50ms suggestions backed by an offline-built trie with frequency weights.
- E-commerce CheckoutAtomic: inventory reservation, payment, order creation — with sagas for rollback.
- Ticket Booking (Ticketmaster)Sell limited seats to a thundering herd without overselling or double-booking.
Real-Time & Messaging
- Messenger / Chat (WhatsApp)Bidirectional messaging with delivery + read receipts, presence, and offline push.
- Notification SystemAsync, channel-agnostic delivery with templates and rate-limiting per user.
- Real-Time LeaderboardTop-N + arbitrary-rank queries at low latency for millions of players.
- Stock Trading (Robinhood)Place orders against a matching engine while streaming live prices to millions of clients.
- Collaborative Editor (Google Docs)Multiple users edit the same document concurrently with conflict-free convergence.
Storage & Data
- Video Streaming (YouTube / Netflix)Upload → transcode → multi-bitrate chunks → CDN-delivered HLS/DASH.
- File Storage (Dropbox / Google Drive)Block-level chunking, content-addressed dedup, cross-device sync.
- Payment System (Stripe)Idempotent, auditable, double-entry ledger with strong consistency.
- Web Search Engine (Google)Crawl the web, build an inverted index, and serve ranked results in milliseconds.
- Distributed Key-Value StorePartition with consistent hashing, replicate N ways, tune consistency with quorums (R + W > N), and repair divergence with hinted handoff, read repair and Merkle trees.
Geo & Location
Streaming & Pipelines
- Distributed Web CrawlerPoliteness-aware distributed fetcher feeding an inverted index.
- Metrics & Monitoring (Prometheus)Pull-based scraping with high-cardinality TSDB and alerting pipeline.
- Distributed Message Queue (Kafka)Append-only partitioned log with at-least-once semantics and replay.
- Trending TopicsStreaming top-K over a sliding window of social signals.
AI & Machine Learning
- ML Inference (Model Serving)Real-time inference with model versioning, A/B testing, and low-latency feature retrieval.
- GenAI / RAG ArchitectureEmpower LLMs with private data using vector embeddings and semantic search.
- Production-Grade IDP PipelineTurn documents (PDFs, scans, faxes, email) into trusted structured data at scale — using an LLM ensemble, deterministic auto-verification, and confidence-calibrated field-level routing to keep humans off the critical path even at ~80% single-model accuracy.
- ML Training PipelineEnd-to-end pipeline from data ingestion to model validation and registration.
- Visual Search System (Pinterest)Search by image using deep feature extraction, high-dimensional indexing, and re-ranking.
- Harmful Content DetectionMulti-modal system (text + image + video) to detect and flag policy violations in real-time.
- Video Recommendation System (YouTube)Candidate generation (Retrieval) followed by deep ranking to optimize for click-through and watch-time.
- Ad Click PredictionLow-latency CTR prediction for real-time bidding and ad placement.
- Gmail Smart ComposeReal-time text completion using Sequence-to-Sequence models with ultra-low latency constraints.
- ChatGPT / LLM SystemDistributed serving of massive models (175B+ parameters) with low-latency streaming.
- Text-to-Image (Stable Diffusion)Latent Diffusion models serving thousands of concurrent generation requests.
- Street View Blurring SystemHigh-throughput image processing pipeline to detect and blur faces and license plates.
Infrastructure
- API Rate LimiterToken-bucket per user, enforced at the edge with Redis-backed counters.
- Distributed Cache (Redis Cluster)Consistent-hash sharded in-memory store with replication and failover.
- API GatewaySingle entry point for auth, rate-limiting, routing, and observability.
- Distributed ID Generator (Snowflake)64-bit IDs: 41-bit timestamp + 10-bit machine-id + 12-bit sequence. Time-sortable.
- Content Delivery NetworkGeo-distributed edge caches that serve static assets near the user.
- Distributed System SecurityMulti-layered security with OAuth/OIDC authentication, JWT authorization, network isolation, and zero-trust principles.
- Distributed Job SchedulerCron and delayed jobs at scale: a durable job store, time-partitioned due-job scanning, leases with fencing tokens, retries with backoff and at-least-once execution.