System Design

Design questions from real interviews, each with a full walkthrough you can read end to end.

21 questions
1Easy
Read
Scale from Zero to Millions of Users

Grow one server into a fleet, one bottleneck at a time, from replicas and caches to shards.

Infrastructure10 min
+1
2Easy
Read
Design a URL Shortener like TinyURL

Turn long links into short codes and redirect billions of clicks fast.

Web & Storage4 min
+1
3Easy
Read
Design a Distributed Unique ID Generator

Hand out sortable, collision-free 64-bit IDs from many machines at once.

Infrastructure4 min
4Medium
Read
Design an API Rate Limiter

Cap how often each client can call an API, consistently across a fleet.

Infrastructure4 min
+2
5Hard
Read
Design a Distributed Key-Value Store

Partition, replicate and heal a store that stays up when machines fail.

Infrastructure4 min
+1
6Medium
Read
Design a Distributed Cache

Serve hot reads from memory across many nodes without stale surprises.

Infrastructure4 min
7Medium
Read
Design a Web Crawler

Fetch and de-duplicate billions of pages politely, then keep them fresh.

Search & Discovery3 min
8Medium
Read
Design Typeahead Suggestions (Autocomplete)

Return the top completions for every keystroke in under 100 ms.

Search & Discovery3 min
+1
9Hard
Read
Design a News Feed like Facebook or X

Build every user a ranked timeline from the people they follow.

Social & Feeds3 min
+1
10Medium
Read
Design Instagram

Upload, store and serve photos to a feed, with likes and follows.

Social & Feeds3 min
11Hard
Read
Design a Chat App like WhatsApp or Messenger

Deliver one-to-one and group messages in real time, even to offline users.

Messaging & Real-time3 min
+1
12Medium
Read
Design a Notification System

Fan out push, email and SMS reliably without spamming anyone.

Messaging & Real-time2 min
+1
13Hard
Read
Design Google Docs (Collaborative Editing)

Let many people edit one document at once and always converge.

Messaging & Real-time3 min
14Hard
Read
Design YouTube or Netflix

Ingest, transcode and stream video at every bitrate around the world.

Media & Streaming3 min
+1
15Hard
Read
Design Dropbox or Google Drive

Sync files across devices, upload only what changed, and resolve conflicts.

Web & Storage3 min
+1
16Hard
Read
Design Uber or Lyft

Match riders with nearby drivers and track every trip live.

Location & Mobility3 min
+1
17Medium
Read
Design Yelp (Nearby Places)

Find the best businesses within a radius of any point, fast.

Location & Mobility3 min
18Hard
Read
Design Ticketmaster (Event Booking)

Sell a fixed set of seats to a crowd without ever double-booking.

Commerce & Payments3 min
19Hard
Read
Design a Payment System

Move money exactly once, reconcile it, and survive every retry.

Commerce & Payments3 min
+1
20Medium
Read
Design a Distributed Job Scheduler

Run millions of one-off and recurring jobs on time, at least once.

Infrastructure3 min
+1
21Medium
Read
Design a Real-time Leaderboard

Rank millions of players by score and show anyone their position instantly.

Infrastructure3 min