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
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
–
009
Design Search Autocomplete
Suggest completions as the user types, in well under the time between keystrokes.
Caching
Medium
–
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
–
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
–