Design Price Alert System (Stock / Amazon) - System Design
“Notify me when AAPL hits $250” or “tell me when this Amazon item drops below Rs 1,999” sounds like a WHERE price >= target query. Then you …
Read MoreDesign A/B Testing System (Optimizely) - System Design
An A/B testing platform is deceptively easy to describe and brutal to get right. “Show half the users the blue button and half the green …
Read MoreDesign ETA Service & Live Location Sharing (Uber) - System Design
Once a rider is matched to a driver, the interesting problem is not “who is my driver” - it is the little car crawling across the map toward …
Read MoreDesign Netflix Screen Limit - System Design
Everyone thinks the screen limit is a counter. “Each plan allows N streams, keep an integer per account, increment when a play starts, …
Read MoreDesign Sort 1TB Dataset on Commodity Hardware - System Design
The whole problem is one sentence: the data does not fit in memory. You have 1TB to sort and 16GB of RAM per machine, so the data is roughly …
Read MoreDesign Surge Pricing System (Uber) - System Design
Surge pricing looks like a multiplication. Base fare times some number, show it to the rider, done. The interviewer lets that sit for about …
Read MoreDesign Top K Elements at Scale (App Store Rankings) - System Design
Everyone thinks App Store rankings are a SELECT app_id, COUNT(*) FROM downloads GROUP BY app_id ORDER BY count DESC LIMIT 100. Count the …
Read MoreDesign Distributed Queue (RabbitMQ-like) - System Design
There are two completely different things people call “a message queue,” and confusing them is the fastest way to fail this interview. One …
Read MoreDesign Google Analytics Pipeline - System Design
Everyone thinks Google Analytics is a counter with a chart on top. “Drop a snippet on every page, count the pageviews, draw a line graph, …
Read MoreDesign Google Calendar - System Design
“Design Google Calendar” sounds like a CRUD app: a user creates an event, it shows up in a grid, the phone syncs it. The interviewer lets …
Read MoreDesign Distributed Stream Processing System (Kafka-like) - System Design
“Stream processing” sounds like a for loop over a queue: read a message, do a thing, write a result. That mental model dies the moment the …
Read MoreDesign Top K Most Shared Articles in Time Windows - System Design
Everyone thinks top-K is a SELECT article_id, COUNT(*) FROM shares GROUP BY article_id ORDER BY count DESC LIMIT 100. Store every share, …
Read MoreDesign Yelp / Nearby Friends - System Design
“Nearby Friends” looks like the Uber problem wearing a different hat - a map, some dots, find the ones near me. It is not. Uber asks “out of …
Read MoreDesign Distributed Metrics & Log Aggregation - System Design
Everyone underestimates log aggregation because the demo is trivial: run an agent on a box, ship each line over the network, dump it into a …
Read MoreDesign Pastebin - System Design
Pastebin looks like a URL shortener with a bigger payload, and people design it that way: mint a key, stuff the text somewhere, return a …
Read MoreDesign Stock Exchange Order Matching - System Design
“Match buy and sell orders” sounds like a database join. Then you look at the constraints. A million orders a second arrive from thousands …
Read MoreDesign an Airbnb / Hotel Booking System - System Design
“Design Airbnb” sounds like a listings app: a host posts a room, a guest searches a city, they book, money changes hands. The interviewer …
Read MoreDesign Instagram-like Photo Sharing - System Design
Instagram sounds like Twitter with pictures, and half of it is. The follow graph, the feed of people you follow, the celebrity who breaks …
Read MoreDesign Netflix Recommendation Engine - System Design
The recommendation engine is the product. Netflix does not have a search box you visit with intent; it has a home screen that must guess, …
Read MoreDesign a Distributed Job Scheduler - System Design
Everyone thinks a job scheduler is a while loop with a sleep. “Check the clock, if a job is due run it, sleep a second, repeat - cron …
Read More