Curated from real interview experiences across Meta, Google, Amazon, Uber, Netflix, Apple, Microsoft, Twitter/X, ByteDance, Airbnb, and Stripe. Each problem maps directly to production blueprints, ASCII architectural flows, and trade-off matrices in the GOD Handbook.
Design a planetary messaging system supporting 2B+ users, stateful WebSocket connection managers, group message fan-out, monotonic message sequencing, and offline inbox synchronization.
Hybrid Fanout-on-Write vs Fanout-on-Read timeline generation, celebrity hot-key write bypass, distributed Redis timeline caches, and two-stage ML ranking pipelines.
Design a multi-terabyte in-memory caching cluster with Consistent Hashing, Virtual Nodes, Segmented LRU / W-TinyLFU eviction, and single-flight stampede protection.
Multi-channel (APNs, FCM, SMS, Webhook) push engine with priority queues, device token tracking, user quiet-hours deduplication, and exponential backoff retry policies.
Design a live streaming chatroom supporting 100k+ concurrent viewers with hierarchical pub/sub broker trees, message rate sampling, and client backpressure flow control.
Sub-millisecond API rate limiting middleware using Redis Lua atomic scripts, Token Bucket, and Sliding Window counter algorithms with fail-open resilience.
Design planet-scale video upload pipelines, DAG-based GOP chunk parallel transcoding, Adaptive Bitrate (ABR) streaming via HLS/DASH, and global Edge CDN distribution.
Cloud storage architecture utilizing Content-Defined Chunking (Rabin Fingerprinting), Content Addressable Storage (CAS) block deduplication, and delta synchronization.
Design a fast search autocomplete system handling millions of queries per second: Trie data structures, MapReduce frequency pre-aggregation, distributed prefix caching, and Top-K sampling.
Designing a Bitly/TinyURL/Firebase Dynamic Links scale redirect engine using Base62 encoding, distributed Snowflake ID generators, and 301 vs 302 HTTP caching.
Designing a planet-scale observability engine featuring Gorilla XOR floating-point TSDB compression, inverted label index posting lists, and streaming alert evaluation.
Design a planetary web crawler: URL frontier with politeness constraints, DNS resolution cache, Robottxt evaluation, content deduplication using SimHash, and distributed worker queues.
Amazon Prime Day checkout architecture: Saga Orchestration, Striped inventory slots for flash-sale stock decrement, immutable price snapshots, and payment handoffs.
Designing a cloud-scale cron and delayed task execution engine with time-bucketed partition sharding, hierarchical timing wheels, and fencing-token leases.
Token-bucket distributed quota tracking, per-client tier limits, burst handling, and rate limit headers at edge gateway proxies.
Design an in-memory caching tier directly in front of distributed NoSQL databases with consistent hashing, write-around caching, and write amplification minimization.
Design a real-time heavy hitter analytics pipeline tracking top 100 selling items per category across millions of concurrent purchases using Count-Min Sketch and sliding windows.
Designing a real-time geospatial ride-dispatch engine with Uber H3 hexagonal hierarchical spatial indexing, real-time driver telemetry streams, and transactional driver locking.
Design an automated dynamic pricing engine calculating supply/demand imbalances aggregated across H3 hexagonal spatial buckets over 15-second sliding windows.
Spatial geofencing trigger queues, driver heartbeat monitoring, multi-tier notification delivery, and exponential backoff retry policies.
Three-sided marketplace orchestration: customer ordering, restaurant prep scheduling, and multi-order courier route batching with dynamic delivery windows.
High-scale media asset processing: parallelized chunk encoding, per-title bitrate ladders, Open Connect storage appliances, and resilient edge delivery.
Designing multi-region Memcached/EVCache layers with cross-region replication, consistent hashing rings, and cache stampede protection.
Design a real-time playback session coordinator enforcing 2/4 concurrent screen policies across global users with heartbeat leases and Redis sliding windows.
Design a planetary notification broker maintaining persistent TLS connections to billions of iOS/macOS devices with priority tiers, collapse keys, and battery efficiency.
Offline-first mobile synchronization: delta sync with version vectors, conflict resolution (LWW / CRDT), background upload constraints, and deduplicated asset storage.
Cryptographic receipt verification, double-entry ledger bookkeeping, developer revenue split calculation, and idempotent transaction processing with zero duplicates.
Multi-tenant WebSocket communication gateway, presence heartbeat state machines, channel role-based access control, and Azure Cosmos DB event sourcing.
Client-server differential sync engine: block-level hashing, bandwidth throttling, conflict resolution, and Azure Blob Storage chunked upload pipeline.
Distributed task allocation across dynamically autoscaled worker VM pools, task dependency DAG evaluation, lease renewal, and dead-letter queues.
Design LinkedIn's connection graph: storing 1B+ professional relationships, sub-second bidirectional BFS 2nd/3rd-degree queries, and 'People You May Know' recommendations.
Real-time event fanout for profile views, job recommendation push alerts, user notification preference filtering, and Kafka-backed event delivery.
Hybrid Fanout-on-Write for normal users and Fanout-on-Read for high-follower accounts, Redis timeline lists, and sub-100ms global delivery.
Design a streaming pipeline to detect real-time trending topics and hashtags over 5-minute sliding windows with Count-Min Sketch, decay factors, and anti-spam filters.
Global sub-10ms redirection service inspecting links against real-time phishing blacklists before redirecting, logging click-through metrics asynchronously.
Design TikTok's 'For You' video feed: multi-stage recommendation architecture (Recall, Coarse Rank, Fine Rank), real-time watch-time feedback loops, and video pre-fetching.
High-throughput live chat system during massive influencer broadcasts: message rate sampling, client backpressure, distributed broadcast pub/sub, and WebRTC streaming.
Distributed video rendering cluster: splitting uploaded video projects into timeline parallel chunks, GPU worker pools, and automated content safety moderation.
Design Airbnb's reservation engine ensuring zero double-bookings: Optimistic Concurrency Control (OCC) with versioning, 15-minute temporary holds with TTL, and distributed locks.
Spatial search engine: Quadtree / Geo-hash spatial indexing, map viewport bounding-box queries, dynamic pricing filters, and cluster aggregation for dense cities.
High-scale availability calendar using bitmask representations per year, high-write host price rule updates, seasonal surge recalculations, and tier caching.
Financial transaction engine: Idempotency keys, immutable double-entry bookkeeping ledger, Payment Service Provider (PSP) orchestration, and automated T+1 settlement reconciliation.
Reliable webhook dispatch platform: guaranteed at-least-once delivery, HMAC SHA-256 signatures, exponential backoff with jitter, and dead-letter quarantine queues.
Sliding window counter, credit card hash buckets, Redis cluster pipelining, and sub-millisecond fraud pattern evaluation before hitting payment processors.
Design an ultra-low-latency electronic exchange with LMAX Disruptor lock-free ring buffers, single-threaded deterministic Limit Order Books, and Raft event journals.
High-throughput financial market data pipeline: sub-millisecond tick ingestion, conflated WebSocket streams for mobile clients, broadcast pub/sub, and L2/L3 order book depth.
Design high-concurrency ticket reservation systems: Virtual Waiting Room FIFO queues, temporary 10-minute seat holds with TTL, and Optimistic Concurrency Control (OCC).
Client-server file synchronization: Rabin Fingerprinting for variable chunking, metadata DAG database, delta upload, and multi-device push notifications.
Planet-scale metrics collector: Gorilla TSDB XOR floating-point compression, Lucene-style inverted label posting lists, distributed LSM log storage, and streaming threshold alerts.