70 simulated system design problems
System design interview problems
Real system design interview problems with explicit traffic profiles, p99 latency targets, availability SLAs and monthly budgets. Read the brief, then build and stress-test your architecture in the live simulator.
Read-Heavy & Caching (8)
High-Volume URL Shortener
Design a URL shortening service handling 20,000 peak requests/sec with a 99:1 Read/Write ratio. Keep p99 latency under 50ms with 99.99% availability.
Asked at: Google, Amazon, Microsoft, Meta
Real-time Activity Feed
Serve home timeline feeds for 30,000 peak requests/sec (90% reads). Ensure p99 latency stays under 200ms with 99.9% availability.
E-Commerce Search & Catalog
Serve high-traffic product catalog queries for 15,000 peak RPS (95% reads). Maintain p99 latency under 80ms while protecting database IOPS.
Design Pastebin Text Sharing
Design a text-sharing service like Pastebin handling 15,000 read RPS and 1,500 write RPS. Store text payloads in Object Storage while querying metadata rapidly with low latency.
Asked at: Amazon, Google, Atlassian
Design Key-Value Store
Design Key-Value Store: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Amazon, Redis Labs, Meta
Design Distributed Cache
Design Distributed Cache: Architect a scalable, highly-available distributed system capable of sustaining 40,000 peak RPS (95% reads). Maintain p99 latency under 40ms with 99.9% availability while optimizing monthly infrastructure cost within $450/mo.
Asked at: Meta, Twitter, Amazon
Design CDN
Design CDN: Architect a scalable, highly-available distributed system capable of sustaining 40,000 peak RPS (95% reads). Maintain p99 latency under 40ms with 99.9% availability while optimizing monthly infrastructure cost within $450/mo.
Asked at: Cloudflare, Akamai, Fastly
Design Object Storage like S3
Design Object Storage like S3: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: AWS, Google Cloud, Dropbox
E-Commerce & Fintech (8)
Flash Sale Inventory Gate
Handle a sudden burst of 50,000 checkout requests/sec (80% writes) without overselling inventory. Target p99 latency under 150ms and 99.9% availability.
Asked at: Amazon, Alibaba, Flipkart, Shopify
Design Digital Wallet & Payment Ledger
Design an ACID-compliant digital wallet and double-entry ledger handling 10,000 checkout transfers/sec. Ensure zero data loss, strict idempotency, and sub-100ms p99 latency.
Asked at: Stripe, PayPal, Apple, Square
Design Amazon
Design Amazon: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Amazon, Walmart, Target
Design Shopify
Design Shopify: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Shopify, Stripe, Amazon
Design Online Auction System
Design Online Auction System: Architect a scalable, highly-available distributed system capable of sustaining 80,000 peak RPS (20% reads). Maintain p99 latency under 100ms with 99.9% availability while optimizing monthly infrastructure cost within $2500/mo.
Asked at: eBay, Amazon, StockX
Design Movie Booking System
Design Movie Booking System: Architect a scalable, highly-available distributed system capable of sustaining 80,000 peak RPS (20% reads). Maintain p99 latency under 100ms with 99.9% availability while optimizing monthly infrastructure cost within $2500/mo.
Asked at: Ticketmaster, BookMyShow, AMC
Design Payment System
Design Payment System: Architect a scalable, highly-available distributed system capable of sustaining 20,000 peak RPS (30% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $750/mo.
Asked at: Stripe, PayPal, Square, Visa
Design Stock Exchange
Design Stock Exchange: Architect a scalable, highly-available distributed system capable of sustaining 20,000 peak RPS (30% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $750/mo.
Asked at: Robinhood, Coinbase, Bloomberg, Citadel
Real-Time & Messaging (7)
Push Notification Pipeline
Ingest and deliver 100,000 event notifications/sec (95% writes). Decouple ingest from delivery workers to guarantee p99 ingest latency under 300ms.
Chat App Message Broker
Deliver 80,000 messages/sec (70% message writes). Scale consumers and partitions to keep p99 latency under 120ms without unbounded lag.
Design WhatsApp
Design WhatsApp: Architect a scalable, highly-available distributed system capable of sustaining 60,000 peak RPS (40% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $850/mo.
Asked at: Meta, Apple, Telegram
Design Slack
Design Slack: Architect a scalable, highly-available distributed system capable of sustaining 60,000 peak RPS (40% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $850/mo.
Asked at: Salesforce, Microsoft, Discord
Design Live Comments
Design Live Comments: Architect a scalable, highly-available distributed system capable of sustaining 60,000 peak RPS (40% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $850/mo.
Asked at: Meta, TikTok, YouTube
Design Messaging Queue
Design Messaging Queue: Architect a scalable, highly-available distributed system capable of sustaining 60,000 peak RPS (40% reads). Maintain p99 latency under 50ms with 99.9% availability while optimizing monthly infrastructure cost within $850/mo.
Asked at: LinkedIn, Confluent, Uber
Design a Scalable Notification Service
Design a Scalable Notification Service: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (10% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Apple, Meta, Amazon
Social & Streaming (10)
Video Upload & Metadata Pipeline
Handle 2,000 heavy media uploads/sec. Avoid routing large video blobs directly through API servers; decouple storage from asynchronous transcode workers.
Design Instagram
Design Instagram: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Meta, Snapchat, Pinterest
Design FB News Feed
Design FB News Feed: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Meta, X (Twitter), LinkedIn
Design TikTok
Design TikTok: Architect a scalable, highly-available distributed system capable of sustaining 70,000 peak RPS (90% reads). Maintain p99 latency under 60ms with 99.9% availability while optimizing monthly infrastructure cost within $1500/mo.
Asked at: ByteDance, Meta, Snapchat
Design Reddit
Design Reddit: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Reddit, Pinterest, Discord
Design Spotify
Design Spotify: Architect a scalable, highly-available distributed system capable of sustaining 70,000 peak RPS (90% reads). Maintain p99 latency under 60ms with 99.9% availability while optimizing monthly infrastructure cost within $1100/mo.
Asked at: Spotify, Apple, Amazon
Design YouTube
Design YouTube: Architect a scalable, highly-available distributed system capable of sustaining 70,000 peak RPS (90% reads). Maintain p99 latency under 60ms with 99.9% availability while optimizing monthly infrastructure cost within $1850/mo.
Asked at: Google, Netflix, Twitch
Design Netflix
Design Netflix: Architect a scalable, highly-available distributed system capable of sustaining 70,000 peak RPS (90% reads). Maintain p99 latency under 60ms with 99.9% availability while optimizing monthly infrastructure cost within $1850/mo.
Asked at: Netflix, Amazon, Disney+
Design Twitch
Design Twitch: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Amazon, Twitch, Discord
Design Likes Counting System
Design Likes Counting System: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Meta, TikTok, YouTube
Distributed Infrastructure (15)
Global Clickstream Analytics
Ingest 150,000 telemetry events/sec (100% writes). Buffer data with partitioned streams and batch-process to persistent storage.
Distributed Web Crawler Sync
Coordinate distributed URL frontier polling and storage for 10,000 pages/sec (60% writes). Use object storage for page bodies and separate fast deduplication filters.
Design Distributed Rate Limiter
Design a distributed rate limiter guarding downstream microservices against 60,000 peak requests/sec. Use fast in-memory token buckets to keep p99 latency under 15ms.
Asked at: Stripe, Cloudflare, Twilio
Design Search Autocomplete System
Design Search Autocomplete System: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Amazon, Microsoft
Design Web Crawler
Design Web Crawler: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (40% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $1400/mo.
Asked at: Google, Microsoft, DuckDuckGo
Design Google Search
Design Google Search: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Microsoft, Baidu
Design Ad Click Aggregator
Design Ad Click Aggregator: Architect a scalable, highly-available distributed system capable of sustaining 150,000 peak RPS (5% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $2250/mo.
Asked at: Meta, Google, Amazon
Design Load Balancer
Design Load Balancer: Architect a scalable, highly-available distributed system capable of sustaining 100,000 peak RPS (70% reads). Maintain p99 latency under 15ms with 99.9% availability while optimizing monthly infrastructure cost within $650/mo.
Asked at: Cloudflare, AWS, Google Cloud
Design API Gateway
Design API Gateway: Architect a scalable, highly-available distributed system capable of sustaining 100,000 peak RPS (70% reads). Maintain p99 latency under 15ms with 99.9% availability while optimizing monthly infrastructure cost within $650/mo.
Asked at: AWS, Netflix, Kong
Design Time Series Database
Design Time Series Database: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (20% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Datadog, InfluxData, Prometheus
Design Locking Service
Design Locking Service: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (50% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Apache, Meta
Design Top K
Design Top K: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (20% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Meta, Amazon
Design Job Scheduler
Design Job Scheduler: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $800/mo.
Asked at: Airbnb, Lyft, Google
Design CI/CD Pipeline
Design CI/CD Pipeline: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $1200/mo.
Asked at: GitHub, GitLab, Atlassian
Design Monitoring and Alerting System
Design Monitoring and Alerting System: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Datadog, PagerDuty, Grafana
Geospatial & Mobility (6)
Ride-Sharing Driver Matching
Handle 40,000 RPS (50% real-time location updates, 50% match requests). Isolate volatile ephemeral state from durable relational data.
Design Tinder
Design Tinder: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Match Group, Bumble, Hinge
Design Airbnb
Design Airbnb: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Airbnb, Booking.com, Expedia
Design Food Delivery Service
Design Food Delivery Service: Architect a scalable, highly-available distributed system capable of sustaining 45,000 peak RPS (50% reads). Maintain p99 latency under 75ms with 99.9% availability while optimizing monthly infrastructure cost within $800/mo.
Asked at: DoorDash, Uber, Instacart
Design Uber
Design Uber: Architect a scalable, highly-available distributed system capable of sustaining 45,000 peak RPS (50% reads). Maintain p99 latency under 75ms with 99.9% availability while optimizing monthly infrastructure cost within $800/mo.
Asked at: Uber, Lyft, Grab
Design Google Maps
Design Google Maps: Architect a scalable, highly-available distributed system capable of sustaining 45,000 peak RPS (50% reads). Maintain p99 latency under 75ms with 99.9% availability while optimizing monthly infrastructure cost within $800/mo.
Asked at: Google, Apple, Uber
Stateful & Collaboration (10)
Design Real-Time Gaming Leaderboard
Design a real-time gaming leaderboard handling 40,000 score submissions and rank lookups/sec. Keep p99 response time under 25ms without overloading backend SQL.
Design Collaborative Document Editor
Design a real-time collaborative document editor like Google Docs with active keystroke sync for 30,000 concurrent edits/sec. Decouple fast session state from snapshot persistence.
Asked at: Google, Microsoft, Notion, Dropbox
Design Zoom
Design Zoom: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Zoom, Microsoft, Google, Cisco
Design Google Drive
Design Google Drive: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Dropbox, Microsoft
Design Gmail
Design Gmail: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Microsoft, Yahoo
Design News Aggregator
Design News Aggregator: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Apple, Google, Yahoo
Design Real Time Leaderboard
Design Real Time Leaderboard: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Riot Games, Epic Games, DraftKings
Design LeetCode
Design LeetCode: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: LeetCode, HackerRank, Codeforces
Design Calendar System
Design Calendar System: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Google, Microsoft, Calendly
Design Online Chess
Design Online Chess: Architect a scalable, highly-available distributed system capable of sustaining 25,000 peak RPS (80% reads). Maintain p99 latency under 80ms with 99.9% availability while optimizing monthly infrastructure cost within $600/mo.
Asked at: Chess.com, Lichess
AI & LLM Systems (6)
Multi-Tenant LLM Inference Platform (ChatGPT-Scale)
Design an LLM inference platform serving 1,800 peak req/s (85% conversational reads/completions, 15% fine-tune/feedback writes). Keep p99 TTFT under 380ms, 99.9% availability, and stay within $4,200/mo by avoiding raw GPU burn on repeated prompts.
Real-Time RAG Answer Engine (Perplexity-Style)
Design a real-time RAG search engine handling 2,400 peak req/s (90% grounded queries, 10% live web index updates). Keep p99 under 420ms, 99.9% availability, and budget under $3,800/mo.
Enterprise Document Q&A Copilot (PII + ACL Safe)
Design an enterprise workspace AI copilot serving 1,200 peak req/s (75% Q&A reads, 25% document upload/re-index writes). Enforce safety/PII guardrails, keep p99 under 350ms, 99.9% availability, within $2,200/mo.
AI Code Autocomplete Engine (Cursor / Copilot)
Design an IDE code completion backend handling 4,000 peak req/s (95% inline completion reads, 5% telemetry/acceptance writes). Keep p99 latency under 220ms with 99.95% availability under $4,500/mo.
Agentic Support Ticket Triage System
Design an agentic customer support triage pipeline handling 1,600 peak req/s (60% knowledge lookup reads, 40% ticket action/tool writes). Keep p99 under 320ms, 99.9% availability, under $2,800/mo.
Real-Time Conversational Voice AI Pipeline
Design a real-time conversational Voice AI backend serving 1,400 peak req/s (80% turn-inference reads, 20% transcript/session writes). Keep p99 turn latency under 300ms, 99.9% availability, under $3,600/mo.