System Design

High-Level Design Problems

Distributed architectures with diagrams, technology choices, deep dives, and trade-offs. Built for interviews at Amazon, Google, Meta, and top startups.

31Designs
3Difficulty Levels
50+Deep Dives
0/31 completed
New to system design?

Start with HLD Fundamentals β€” covers CAP theorem, caching, sharding, queues, and back-of-envelope estimation.

β†’
The 45-Minute Framework

Step-by-step delivery structure for your system design interview. Timings, phases, and what to say at each stage.

β†’

Intermediate

10 problems
Intermediate

Twitter (X) / Threads β€” Social Feed

Fan-out on write vs read, timeline caching, celebrity problem.

Fan-out Timeline Cache Celebrity Problem
Meta Twitter LinkedIn
Intermediate

Chat System (WhatsApp / iMessage)

WebSocket connections, offline delivery queues, Cassandra message store.

WebSocket Offline Delivery Cassandra
Meta Slack Discord
Intermediate

Notification System

Multi-channel push/email/SMS, Kafka pipelines, template service, engagement tracking.

Multi-channel Kafka Template Engine
Amazon Uber PhonePe
Intermediate

Photo Sharing (Instagram / Pinterest)

Media upload pipeline, CDN delivery, news feed generation, fan-out, image optimization.

CDN Fan-out Object Storage
Meta Pinterest Snap
Intermediate

Ticket Booking (BookMyShow / Ticketmaster)

Seat selection, distributed locking, temporary holds, payment integration, no double-booking.

Distributed Lock TTL Holds Payment Saga
BookMyShow Ticketmaster Amazon
Intermediate

News Aggregator (Google News)

Crawling 50K sources, story clustering with embeddings, personalized feed ranking, breaking news detection.

Crawling NLP Clustering Feed Ranking
Google Apple Microsoft
Intermediate

Search Autocomplete / Typeahead

Trie data structure, prefix matching, real-time trending detection, caching hot prefixes.

Trie Prefix Matching Trending
Google LinkedIn Amazon
Intermediate

Nearby Service (Yelp / Google Maps)

Geohash, quadtree, spatial indexing, high-frequency location updates, radius queries.

Geohash Redis Geo Spatial Index
Google Uber Swiggy
Intermediate

Shopping Cart (Amazon / Flipkart)

Cart persistence across devices, guest-cart merge on login, flash-sale write bursts.

Redis Write-Behind Flash Sale
Amazon Flipkart Meesho
Intermediate

Q&A Forum (Quora / StackOverflow)

100:1 read skew, answer ranking, full-text search over 10M questions.

Read Replicas Elasticsearch Ranking
PhonePe Meta Atlassian

Advanced

15 problems
Advanced

Distributed Job Scheduler

Redis ZSET hot window, leader election, retries, dead-letter queues.

Redis ZSET Leader Election DLQ
Uber Amazon Airbnb
Advanced

Delayed Trigger Service

SQS + Cassandra, hierarchical timing wheels, circuit breaker patterns.

Timing Wheel SQS Circuit Breaker
PhonePe Stripe
Advanced

Digital Wallet (PhonePe / Venmo)

Double-entry ledger, idempotency keys, reconciliation, saga pattern.

Double-Entry Ledger Idempotency Reconciliation
PhonePe Venmo Razorpay Stripe
Advanced

Food Delivery (Zomato / Uber Eats)

Elasticsearch search, Redis Geo proximity, dispatch algorithms, live tracking via WebSockets.

Elasticsearch Redis Geo Live Tracking
Zomato Uber Eats DoorDash Swiggy
Advanced

Stock Broker (Robinhood / Zerodha)

Order matching engine, CQRS event sourcing, exactly-once delivery, Kafka, real-time notifications.

Order Matching Event Sourcing Exactly-Once
Robinhood Zerodha Fidelity Groww
Advanced

Ride Sharing (Uber / Lyft)

Real-time driver matching, location tracking, ride lifecycle, surge pricing, ETA calculation.

Redis Geo WebSocket Matching
Uber Lyft Ola
Advanced

Video Streaming (Netflix / YouTube)

Video encoding pipeline, CDN edge caching, adaptive bitrate streaming, recommendation engine.

CDN Encoding Pipeline ABR Streaming
Netflix YouTube Disney+
Advanced

Collaborative Editing (Google Docs / Notion)

Real-time multi-user editing, OT/CRDT conflict resolution, presence tracking, version history.

CRDT WebSocket Conflict Resolution
Google Notion Figma
Advanced

Cloud File Storage (Dropbox / Google Drive)

Chunking, content-addressed dedup, delta sync, conflict resolution, version history.

Chunking Dedup Delta Sync
Dropbox Google Microsoft
Advanced

Metrics Monitoring (Datadog / Prometheus)

Time-series ingestion, Gorilla encoding, rollup aggregation, real-time alerting pipeline.

Time-Series DB Aggregation Alerting
Amazon Uber Netflix
Advanced

Ad Serving and Auction System

Real-time bidding, ML ad ranking, budget pacing, click fraud detection, impression tracking.

RTB Auction ML Ranking Budget Pacing
Google Meta Amazon
Advanced

Payment System (Stripe / Razorpay)

Payment orchestration, idempotency, double-entry ledger, settlement, reconciliation, PCI compliance.

Idempotency Ledger Reconciliation
Stripe Razorpay PhonePe
Advanced

Distributed Message Queue (Kafka)

Partitioned commit log, consumer groups, exactly-once delivery, ISR replication, ordering guarantees.

Partitioned Log Exactly-Once Replication
LinkedIn Uber Confluent
Advanced

Web Crawler & Search Engine

Two-level URL frontier for politeness, Bloom-filter dedup, sharded inverted index.

URL Frontier Bloom Filter Inverted Index
Google PhonePe Microsoft
Advanced

ChatGPT / Claude (AI Chat)

Token streaming over SSE, GPU inference scaling, context-window management, per-tier rate limits.

SSE Streaming GPU Scheduling Context Window
OpenAI Anthropic Google

Coming soon: E-Commerce Platform, Spotify Music Streaming, Trending Topics, Distributed Cache

Recommended Study Order

Follow this progression to build concepts layer by layer. Each level builds on the previous.

1
Fundamentals + Framework CAP, Caching, Sharding, Queues + the 45-min delivery structure
Read β†’
2
Rate Limiter + Leaderboard + Pastebin + Key-Value Store + URL Shortener Single-service designs. Redis patterns. CDN basics. Storage fundamentals.
3
Chat System + Notification System + BookMyShow / Ticketmaster Multi-tier, async, WebSocket, distributed locks, payment flows.
4
Twitter Feed + Instagram Fan-out patterns, CDN delivery, feed ranking, celebrity problem.
5
Zomato / Uber Eats + Uber / Lyft Geo-proximity, live tracking, matching algorithms, surge pricing.
6
Digital Wallet + Stock Broker Staff+ level: financial consistency, event sourcing, exactly-once (PhonePe/Venmo, Robinhood/Zerodha).
7
Netflix / YouTube + Google Docs / Notion + Job Scheduler Expert level: encoding pipelines, CRDT/OT, distributed coordination.