Problems
Start with fundamentals, then work up to distributed systems.
All levels
Easy
Medium
Hard
0 of 62 completed
All categories
Fundamentals and estimation
APIs and application architecture
Caching
Messaging and event-driven systems
Distributed systems
Databases and storage
Observability and operations
Security and data protection
Scalability and reliability
001
Design a URL Shortener
Turn long links into short codes and redirect millions of clicks a day.
Fundamentals and estimation
Easy
–
002
Design a Rate Limiter
Protect an API by limiting how many requests each client can make.
APIs and application architecture
Medium
–
003
Design a News Feed
Show each user a ranked feed of posts from the people they follow.
Caching
Medium
–
004
Design a Notification System
Deliver push, email and SMS notifications reliably at scale.
Messaging and event-driven systems
Medium
–
005
Design a Distributed Message Queue
Build a durable, partitioned queue with at-least-once delivery.
Distributed systems
Hard
PRO
006
Design a Payment Ledger
Record money movements with strict correctness and a full audit trail.
Databases and storage
Hard
PRO
007
Design a Pastebin
Let people share text snippets through short links that load instantly.
Fundamentals and estimation
Easy
–
008
Design a Game Leaderboard
Rank millions of players in real time and show each player their position.
Caching
Easy
–
009
Design Search Autocomplete
Suggest completions as the user types, in well under the time between keystrokes.
Caching
Medium
–
010
Design an Image Thumbnail Service
Accept image uploads and produce resized thumbnails without making users wait.
Messaging and event-driven systems
Easy
–
011
Design a Real-Time Chat Service
Deliver one-to-one and group messages instantly, with history and online presence.
Messaging and event-driven systems
Medium
–
012
Design a Web Crawler
Crawl billions of pages politely, without fetching the same page twice.
Distributed systems
Medium
–
013
Design Static Website Hosting
Host millions of static websites on custom domains, served fast from anywhere in the world.
Fundamentals and estimation
Easy
–
014
Design a Task Tracker API
Build the REST API behind a to-do app: users, lists and tasks with paging and filters.
APIs and application architecture
Easy
–
015
Design a File Upload Service
Let users upload files of up to 2 GB reliably, scan them for viruses and download them later.
Databases and storage
Easy
–
016
Design a Session Store
Keep users signed in across a fleet of stateless web servers with a fast, shared session store.
Caching
Easy
–
017
Design an Uptime Monitor
Check customer websites every minute from several regions, alert when they go down and publish a status page.
Observability and operations
Easy
–
018
Design a Newsletter Sender
Send a weekly email to 5 million subscribers through an email provider, reliably and without duplicates.
Messaging and event-driven systems
Easy
–
019
Design a Login Service
Sign users in with a password or Google/GitHub and issue short-lived tokens other services can trust.
Security and data protection
Easy
–
020
Design a Product Catalog
Serve fast product pages for an online store, with caching that never shows a stale price for long.
Caching
Easy
–
021
Design a Blogging Platform
Let authors publish posts and readers browse and comment, on a platform where reads far outnumber writes.
Fundamentals and estimation
Easy
–
022
Design a Link Preview Service
Turn URLs pasted into chat into preview cards with a title, description and image, safely and quickly.
APIs and application architecture
Easy
–
023
Design a Feature Flag Service
Let product teams switch features on per user or segment, with flag checks that take under 5 ms.
APIs and application architecture
Easy
–
024
Design a Weather API Proxy
Serve weather forecasts to a mobile app while keeping calls to a paid external provider, and their cost, to a minimum.
Caching
Easy
–
025
Design a Log Collector
Ship application logs from 500 servers into searchable storage, with 30 days of retention.
Observability and operations
Easy
–
026
Design a Polls and Voting App
Let users create polls, vote exactly once and watch the counts update live.
Databases and storage
Easy
–
027
Design Scheduled Reminders
Let users schedule reminders for a future time and deliver each one on time, exactly once.
Messaging and event-driven systems
Easy
–
028
Design an E-commerce Checkout
Turn a shopping cart into a paid order exactly once, without overselling stock.
Databases and storage
Medium
–
029
Design a Hotel Booking System
Let travellers search room availability across 100,000 hotels and book without ever double-booking a room.
Databases and storage
Medium
–
030
Design a Distributed Key-Value Cache
Build a Memcached-style cache cluster that spreads keys across nodes and survives node loss and hot keys.
Caching
Medium
–
031
Design an API Gateway Platform
Put one secure, observable front door in front of 40 microservices.
APIs and application architecture
Medium
–
032
Design a Metrics Monitoring System
Collect time-series metrics from 100,000 hosts, power dashboards and fire alerts within a minute.
Observability and operations
Medium
–
033
Design Distributed Tracing
Follow a single request across hundreds of microservices, with sampling to keep storage costs sane.
Observability and operations
Medium
–
034
Design a Photo Sharing App
Let people upload photos, follow each other and scroll a feed of photos from accounts they follow.
Databases and storage
Medium
–
035
Design a Video-on-Demand Platform
Upload, transcode and stream recorded videos smoothly to millions of viewers on any device.
Scalability and reliability
Medium
–
036
Design Food Delivery Tracking
Show customers their courier moving on a map in near real time, from phone GPS updates every few seconds.
Distributed systems
Medium
–
037
Design Product Search
Search 50 million products by keyword with filters and facets, kept fresh as the catalogue changes.
Databases and storage
Medium
–
038
Design a Recommendation Service
Serve personalised 'you may also like' lists fast enough to render with the page, trained on what users do.
Fundamentals and estimation
Medium
–
039
Design Webhook Delivery
Reliably deliver signed event notifications to thousands of customer endpoints, with retries that never let one slow customer hurt the rest.
Messaging and event-driven systems
Medium
–
040
Design an Audit Log Pipeline
Record every administrative action in a tamper-evident log that auditors can search for seven years.
Security and data protection
Medium
–
041
Design a Secrets Manager
Store, hand out and rotate API keys and database passwords so services never keep credentials in code or config files.
Security and data protection
Medium
–
042
Design Single Sign-On
Let employees sign in once with MFA and reach every company app, with sessions that can be revoked instantly.
Security and data protection
Medium
–
043
Design Clickstream Analytics
Collect page views and taps from web and mobile apps, power live counters and produce daily reports.
Messaging and event-driven systems
Medium
–
044
Design an Order Fulfillment Saga
Coordinate payment, inventory and shipping services so every order either completes or is cleanly undone.
Distributed systems
Medium
–
045
Design an Inventory Service
Keep accurate stock counts across many warehouses while thousands of orders compete for the same items.
Databases and storage
Medium
–
046
Design a Nearby Places Service
Find restaurants, cafés and shops within a radius of the user, quickly and at global scale.
Databases and storage
Medium
–
047
Design a File Sync Service
Keep a user's files in sync across laptops, phones and the web, efficiently and without losing edits.
Distributed systems
Medium
–
048
Design Live Comments
Show comments on a live broadcast to a million viewers within two seconds, with abuse filtered out.
Messaging and event-driven systems
Medium
–
049
Design a CI Build System
Run builds and tests for thousands of repositories on every push, with live logs and stored artefacts.
Fundamentals and estimation
Medium
–
050
Design a Content Moderation Pipeline
Screen every uploaded post and image with machine-learning classifiers, escalating uncertain cases to human reviewers.
Messaging and event-driven systems
Medium
–
051
Design Semantic Document Search
Let employees search company documents by meaning, combining vector and keyword search while respecting permissions.
Databases and storage
Medium
–
052
Design a Multi-Tenant SaaS Backend
Serve thousands of business customers from shared infrastructure while keeping their data isolated and their traffic fair.
Scalability and reliability
Medium
–
053
Design Ride-Hailing Dispatch
Match riders to nearby drivers within seconds while tracking live locations, pricing surges and every trip's state.
Distributed systems
Hard
PRO
054
Design Flash-Sale Ticketing
Sell 50,000 concert seats to 2 million fans in minutes, fairly and without ever selling a seat twice.
Scalability and reliability
Hard
PRO
055
Design a Collaborative Document Editor
Let many people edit the same document at once, see each other's cursors, work offline and browse version history.
Distributed systems
Hard
PRO
056
Design Live Video Streaming
Broadcast live streams to 5 million concurrent viewers less than 5 seconds behind real time, with live chat.
Scalability and reliability
Hard
PRO
057
Design a Stock Exchange Matching Engine
Match buy and sell orders fairly in strict arrival order with microsecond latency, and publish market data to every participant.
Distributed systems
Hard
PRO
058
Design a Multi-Region Active-Active Store
Keep 300 million user profiles readable and writable in three regions at once, surviving the loss of a whole region.
Scalability and reliability
Hard
PRO
059
Design Real-Time Fraud Detection
Score every card transaction for fraud within the authorisation window using rules, live features and machine learning.
Security and data protection
Hard
PRO
060
Design a Petabyte Logging Platform
Ingest 5 GB/s of logs from every team, keep 7 days searchable in seconds and a year in cheap storage, with fair per-team quotas.
Observability and operations
Hard
PRO
061
Design a Durable Workflow Engine
Run long-lived business workflows that survive crashes, with retries, durable timers, exactly-once step effects and full history.
Messaging and event-driven systems
Hard
PRO
062
Design an Object Storage Service
Build an S3-like service storing trillions of objects with 11 nines of durability, multipart uploads and cross-region replication.
Databases and storage
Hard
PRO