System Design Interview Prep
In-depth walkthroughs of 19 High-Level Design (HLD) and 11 Low-Level Design (LLD) questions asked in Senior, Staff, and Principal engineering interview loops at Big Tech.
Design a Distributed URL Shortener (TinyURL / Bitly)
Design a globally available URL shortener capable of converting long URLs into compact 7-character aliases, servicing 100:1 read-to-write ratios with sub-10ms P99 redirection latency under massive cache offload.
Design a Distributed API Rate Limiter
Design a high-throughput, low-latency distributed rate limiter capable of enforcing per-tenant and per-IP throttles across multi-region edge gateways with sub-2ms evaluation overhead.
Design a Real-Time Instant Messaging System (WhatsApp / Slack)
Architect a fault-tolerant, horizontally scalable real-time messaging system supporting 1:1 direct messages, massive group channels, delivery receipts, and online presence tracking under strict ordering guarantees.
Design an In-Memory LRU / LFU Eviction Cache
Design and implement a thread-safe, high-concurrency in-memory Least Recently Used (LRU) cache supporting true O(1) get and put operations, TTL expirations, and fine-grained concurrent locking.
Design a Multi-Level Parking Lot Management System
Design a clean, modular object-oriented parking lot system supporting multiple vehicle types, automated multi-floor space allocation strategies, ticket generation, and extensible fee calculation.
Design a Distributed Video Streaming & Transcoding Platform (YouTube / Netflix)
Architect an end-to-end distributed video ingestion, parallel chunk transcoding, and adaptive bitrate streaming (ABR) platform capable of serving petabytes of video traffic globally with zero buffering.
Design a Geospatial Ride-Sharing Dispatch System (Uber / Lyft)
Architect a real-time geospatial location tracking, trip matching, and dynamic surge pricing engine capable of handling millions of mobile drivers emitting GPS coordinates every 4 seconds.
Design a Distributed Web Crawler & Inverted Search Indexer
Design a robust, polite, and distributed web crawler and search indexing pipeline capable of discovering, parsing, deduplicating, and indexing billions of web pages at massive scale.
Design a High-Concurrency Flash Sale & Inventory Reservation System
Design an ultra-high concurrency flash sale and inventory reservation system capable of preventing inventory overselling under millions of concurrent checkout requests with automated lock expirations.
Design a Distributed Key-Value Store with Tunable Consistency (DynamoDB / Cassandra)
Design a masterless, peer-to-peer distributed Key-Value storage engine featuring consistent hashing, tunable quorum consistency (N, R, W), vector clocks, and high-performance LSM-tree storage engines.
Design a Real-Time Collaborative Document Editor (Google Docs / Figma)
Architect a multi-user real-time collaborative document editing platform supporting concurrent offline-first edits, sub-50ms peer synchronization, conflict-free state convergence (CRDT/OT), and full version history snapshots.
Design a Distributed Job Scheduler & Workflow Engine (Temporal / Apache Airflow)
Design a highly resilient, durable workflow orchestration platform capable of scheduling, executing, and monitoring millions of complex Directed Acyclic Graph (DAG) task pipelines with guaranteed exactly-once progression.
Design a Distributed Financial Ledger & Payment Reconciliation Core (Stripe / Square)
Design an audit-grade, immutable double-entry financial ledger and payment gateway core guaranteeing mathematical zero-sum balance invariants, exactly-once transaction processing, and multi-currency reconciliation.
Design a Proximity Search & Spatial Discovery Service (Nearby Places / Yelp / Tinder)
Design a low-latency geospatial proximity discovery engine capable of indexing tens of millions of places and executing sub-10ms radius search queries ('find restaurants within 3 miles') under heavy read concurrency.
Design a Distributed Object Storage System (Amazon S3 / Google Cloud Storage)
Architect a massive-scale, multi-petabyte distributed object storage service achieving 99.999999999% (11 9s) data durability, strict metadata-data plane separation, chunked streaming, and Reed-Solomon erasure coding.
Design a Time-Series Telemetry & Metric Aggregation Platform (Datadog / Prometheus)
Design a high-throughput time-series metrics ingestion and alerting engine capable of handling billions of metric datapoints per minute, employing Gorilla delta-of-delta compression and automated rollups.
Design a Distributed Webhook Delivery & Dead-Letter Retry Engine (Stripe / GitHub)
Architect an enterprise webhook dispatch and delivery platform guaranteeing at-least-once delivery, HMAC payload signatures, exponential backoff with full jitter, customer endpoint rate isolation, and dead-letter queues.
Design a Scalable Social Media News Feed (Twitter / LinkedIn / Facebook)
Design a globally distributed social media news feed platform supporting millions of concurrent users, balancing Fan-Out on Write vs Fan-Out on Read to solve the celebrity hotkey bottleneck.
Design a Real-Time Elevator Dispatch Controller (SCAN / LOOK Algorithm)
Design and implement a multi-elevator building dispatch system utilizing the classic LOOK disk-scheduling algorithm, state pattern transitions, and thread-safe concurrent floor request handling.
Design Splitwise (Expense Sharing & Debt Simplification Engine)
Design and implement a multi-user group expense sharing platform featuring exact, equal, and percentage splits, paired with an optimal Min-Cash-Flow graph debt simplification algorithm.
Design a Distributed Multi-Channel Notification Gateway (Push, SMS, Email)
Design a unified notification platform capable of delivering billions of push notifications, SMS texts, and emails daily with user preference filtering, deduplication, and provider failover.
Design a Distributed Pastebin / Code Snippet Service (Pastebin / GitHub Gist)
Design a high-availability pastebin service for storing and sharing plain text and code snippets with custom vanity URLs, automated expiration TTLs, and multi-tier caching.
Design a Pluggable Logging & Telemetry Framework (Log4j-style)
Design and implement a high-performance, non-blocking logging framework supporting hierarchical log levels, pluggable formatters, asynchronous ring-buffer appenders, and zero-allocation string formatting.
Design a Movie Theater Seat Booking Engine with Expirable Locks (BookMyShow)
Design a high-concurrency movie theater seat reservation engine capable of handling simultaneous booking attempts for the same seats, managing 10-minute temporary holds, and processing payments.
Design a Vending Machine (Finite State Machine)
Design a clean, object-oriented Vending Machine utilizing the State Design Pattern to model coins insertion, item selection, dispensing, change return, and out-of-order maintenance states.
Design a Multiplayer Chess Game Engine with Move Validation & Clocks
Design an extensible object-oriented chess game engine featuring board coordinate representations, piece polymorphism, special move validation (castling, en passant, promotion), check/checkmate detection, and Fischer chess clocks.
Design a Distributed In-Memory Pub/Sub Message Broker (Kafka Lite)
Design and implement an in-memory partitioned append-only message broker supporting topic partitioning, consumer group offset tracking, at-least-once delivery, and concurrent non-blocking publishes.
Design a Live Sports Scoreboard & Event Broadcaster (Cricbuzz / ESPN)
Design a real-time live sports scoring and ball-by-ball commentary broadcast engine capable of fanning out instant scoreboard updates to 50 Million concurrent connected mobile users.
Design a Calendar & Meeting Scheduler with Overlap Resolution (Google Calendar)
Design an enterprise calendar engine capable of scheduling multi-participant meetings, resolving room resource constraints, detecting time slot conflicts, and executing recurring interval expansion (RRULE).
Design a Pluggable Rate Limiting Algorithm Library (Token / Leaky Bucket / Sliding Window)
Design and implement a thread-safe, pluggable rate limiting library supporting Token Bucket, Leaky Bucket, and Sliding Window Counter algorithms with microsecond-level synchronization.