Caching System Design Questions

35 design prompts lean on caching. Each one runs on a whiteboard canvas with AI feedback graded against a hidden rubric.

New to caching? There's a 5-lesson interactive course (~51 min) with animated architectures and runnable simulations. Learn the concept first →

Design problems

URL Shortener

Junior

Design a URL shortener like TinyURL or Bitly.

Database ScalingLoad Balancing & Scaling

Rate Limiter

Junior

Design a distributed rate limiter for a company's public APIs.

Consistency & Trade-offsLoad Balancing & Scaling

Pastebin

Junior

Design a Pastebin-style text snippet sharing service.

Database ScalingLoad Balancing & Scaling

News Feed

Mid/Senior

Design a social news feed like Instagram's or Facebook's home feed.

Database ScalingQueues & Async Processing

Video Streaming

Mid/Senior

Design the video playback and delivery system for a streaming service like Netflix or YouTube.

Database ScalingLoad Balancing & Scaling

Distributed Cache

Mid/Senior

Design a distributed in-memory cache like Redis or Memcached.

Consistency & Trade-offsLoad Balancing & Scaling

Maps & ETA

Staff

Design a maps routing and ETA service like Google Maps.

Database ScalingLoad Balancing & Scaling

Search Autocomplete

Mid/Senior

Design a search autocomplete (typeahead) service.

Database ScalingLoad Balancing & Scaling

Web Crawler

Mid/Senior

Design a large-scale distributed web crawler.

Database ScalingQueues & Async Processing

Recommendation System

Staff

Design a personalized recommendation system like Netflix's.

Database ScalingQueues & Async Processing

Fraud Detection

Staff

Design a real-time fraud detection system for payments like Stripe Radar.

Consistency & Trade-offsQueues & Async Processing

Package Tracking

Mid/Senior

Design a package tracking system like FedEx, UPS, or Amazon's track package feature.

Database ScalingQueues & Async Processing

Hotel Booking

Junior

Design a hotel room booking system like Booking.com or Expedia.

Consistency & Trade-offsDatabase Scaling

Surge Pricing

Mid/Senior

Design dynamic surge pricing for a ride-hailing or delivery app like Uber or DoorDash.

Consistency & Trade-offsQueues & Async Processing

Presence Service

Junior

Design an online presence and last-seen service like WhatsApp or Slack.

Queues & Async Processing

Like Counter

Junior

Design the like counting system for a social app like Instagram or YouTube.

Consistency & Trade-offsDatabase Scaling

Social Graph

Mid/Senior

Design the follow graph service for a social network like Twitter or Instagram.

Consistency & Trade-offsDatabase Scaling

Image Hosting

Junior

Design an image hosting and delivery service like Imgur or Instagram.

Database ScalingQueues & Async Processing

Watch History

Junior

Design the watch history and continue watching feature for a service like Netflix.

Consistency & Trade-offsDatabase Scaling

Live Streaming

Mid/Senior

Design a live video broadcasting platform like Twitch or YouTube Live.

Load Balancing & Scaling

Shopping Cart

Junior

Design the shopping cart service for a retailer like Amazon or Walmart.

Consistency & Trade-offsDatabase Scaling

Product Catalog

Mid/Senior

Design the product catalog service for a retailer like Walmart or a Shopify store.

Database ScalingQueues & Async Processing

Trending Topics

Staff

Design a trending topics feature like Twitter Trends or Google Trends.

Consistency & Trade-offsQueues & Async Processing

Ad Budget Pacing

Mid/Senior

Design budget enforcement and pacing for an ad platform like Google Ads or Meta Ads.

Consistency & Trade-offsQueues & Async Processing

Feature Flags

Junior

Design a feature flag service like LaunchDarkly or Unleash.

Consistency & Trade-offsQueues & Async Processing

Service Discovery

Mid/Senior

Design a service discovery system like Consul, Eureka, or Kubernetes DNS.

Consistency & Trade-offsLoad Balancing & Scaling

Object Storage

Staff

Design an object storage service like Amazon S3 or Google Cloud Storage.

Consistency & Trade-offsDatabase Scaling

Calendar Scheduling

Junior

Design a calendar and meeting scheduling service like Google Calendar or Outlook.

Database ScalingQueues & Async Processing

Access Control

Mid/Senior

Design the access control system for a document sharing product like Google Drive.

Consistency & Trade-offsDatabase Scaling

API Gateway

Mid/Senior

Design an API gateway like Kong or AWS API Gateway.

Consistency & Trade-offsLoad Balancing & Scaling

Recent Searches

Junior

Design a recent searches list like the one Amazon or YouTube shows in an empty search box.

Consistency & Trade-offsDatabase Scaling

Product Reviews

Junior

Design a product ratings and reviews system like the one on Amazon or Yelp.

Consistency & Trade-offsDatabase Scaling

Restaurant Menu

Junior

Design the restaurant menu service behind a food delivery app like DoorDash or Uber Eats.

Consistency & Trade-offsDatabase Scaling

Package Registry

Junior

Design a package registry that serves library downloads, like npm or PyPI.

Consistency & Trade-offsDatabase Scaling

Session Store

Junior

Design the login session store for a large web application like GitHub.

Consistency & Trade-offsDatabase Scaling

Want the pressure version? Any of these can run as a live 45-minute design interview with follow-up questions and a verdict. Set up a design interview