Practice series

Caching, partitioning & hot-path scale

Hot keys, cache strategy, sharding, admission control, quotas, and durable fast paths.

26 questions29 exact tags
  1. 01

    Ad Click Aggregator

    Design an ad click aggregation system that ingests millions of click events per second and serves near-real-time plus historical aggregate metrics to advertiser...

    Meta
    Free
  2. 02

    AI Agent System

    Design a production AI agent application platform that accepts user goals, manages context and memory, calls tools safely, pauses for human review when needed,...

    Practice bank
    Preview
  3. 03

    Chat Service

    Design the backend infrastructure behind a chat product — stateful connection servers, message storage, and group fan-out — for hundreds of millions of concurre...

    Discord
    Preview
  4. 04

    Coupons and Deals Platform

    Design a coupons and deals platform where users browse and search a large, frequently changing catalog of deals and redeem coupon codes exactly once per limit,...

    Practice bank
    Preview
  5. 05

    Donation Platform

    Design a donation platform like GoFundMe — a campaign can go viral overnight and receive a massive spike of small donations, and every dollar must be captured,...

    Practice bank
    Preview
  6. 06

    Facebook Post Search

    Design search over a social feed — let users find posts by keyword in near real time while respecting each post’s privacy/visibility settings.

    Meta
    Preview
  7. 07

    Flash Sale

    Design a flash sale system where a limited quantity of a hot item goes on sale at a fixed instant and receives a 1000x traffic spike in seconds — inventory must...

    Practice bank
    Preview
  8. 08

    Game Leaderboard

    Design a real-time game leaderboard that ranks millions of players by score, supports regional and time-windowed boards, and serves both top-N and a given playe...

    Strava
    Preview
  9. 09

    Hotel Reservation (Booking.com)

    Design Booking.com — a hotel marketplace aggregating live availability and pricing from thousands of independent supplier hotels, where search results must stay...

    Booking.com
    Preview
  10. 10

    Metric Monitoring and Alerting

    Design the metrics pipeline behind a monitoring platform — the path from an SDK on thousands of hosts emitting numeric measurements, through streaming pre-aggre...

    Uber
    Preview
  11. 11

    Ticketmaster (General Admission)

    Design Ticketmaster for general-admission events — there is no seat map, only a fixed capacity count per ticket tier, and the system must sell tickets correctly...

    Ticketmaster
    Preview
  12. 12

    Ticketmaster

    Design Ticketmaster — an event ticketing system that sells reserved seats under extreme flash-sale contention without ever double-selling a seat.

    Ticketmaster
    Free
  13. 13

    Top K Songs (Spotify)

    Design Spotify's Top-K most-played songs feature — compute top charts over sliding time windows at listening-event scale.

    Spotify / Meta
    Free
  14. 14

    Uber (Ride Hailing)

    Design Uber — a ride-hailing platform matching riders to nearby drivers in real time, with live location tracking, pricing, and trip lifecycle management.

    Uber
    Free
  15. 15

    Web Crawler

    Design a web-scale crawler that politely fetches and indexes billions of pages, deduplicates content, and keeps the corpus fresh.

    Google
    Free
  16. 16

    Yelp

    Design Yelp — a local business search and review platform that returns nearby, filterable business results ranked by relevance and rating.

    Yelp
    Preview
  17. 17

    URL Shortener

    Design a scalable URL shortener for 100M daily active users.

    Instagram
    Free
  18. 18

    LLM Inference Gateway

    Design an LLM inference gateway that sits between internal product teams and multiple model providers/backends, handling routing, streaming, quotas, and safety...

    OpenAI / Anthropic
    Free
  19. 19

    AI Training Cluster

    Design the scheduler for a large GPU/TPU training cluster shared by multiple teams running distributed training jobs, handling gang scheduling, preemption, and...

    Meta
    Preview
  20. 20

    Rate Limiter

    Design a distributed API rate limiter for a public API platform.

    Cloudflare
    Preview
  21. 21

    Vector Database

    Design the storage and query engine of a vector database that indexes billions of embeddings for approximate nearest-neighbor search.

    Meta (Faiss)
    Preview
  22. 22

    Distributed Key-Value Store

    Design a Dynamo-style highly available key-value store: partition keys across nodes with consistent hashing, replicate each key to N nodes, and let every operat...

    Practice bank
    Preview
  23. 23

    Distributed Cache

    Design a distributed in-memory cache service at Redis/Memcached scale that serves roughly 1M QPS at p99 under 5ms.

    Meta
    Preview
  24. 24

    Distributed Message Queue

    Design a Kafka-style durable, partitioned log broker that ingests high-throughput event streams.

    Apache Kafka (LinkedIn)
    Preview
  25. 25

    Food Delivery Marketplace

    Design a DoorDash-style food delivery marketplace connecting consumers, Dashers, and merchants.

    Uber
    Preview
  26. 26

    Live Comments

    Design a live comments system that fans out comments from one live event to millions of concurrent viewers in real time.

    Meta
    Preview