Design Amazon Shopping Cart - System Design
A shopping cart sounds like a toy problem. “Store a list of item IDs and quantities for a user, let them add and remove, show it back.” You …
Read MoreDesign Migrate 1PB of Data to Cloud - System Design
“Move 1PB to the cloud” sounds like a copy job, and people design it like one: point a script at the source, rsync to an S3 bucket, wait. …
Read MoreDesign Slack (Team Messaging) - System Design
People hear “build Slack” and reach for a chat toy: a messages table, a WebSocket, insert on send, push to whoever is connected. That works …
Read MoreDesign Ads Management & Display in Social Feed - System Design
Everyone models an ad server as a lookup: “the user opens the feed, we fetch an ad, we show it, done.” The interviewer lets that sit for a …
Read MoreDesign Distributed Document Editor (Notion / Wikipedia) - System Design
Almost everyone reaches for Google Docs the moment they hear “document editor,” and almost everyone is answering the wrong question. Google …
Read MoreDesign Toll Collection (FASTag) - System Design
A car drives through a toll lane at 30 km/h, an overhead antenna reads its RFID tag, and by the time the nose of the car reaches the barrier …
Read MoreDesign Flash Sale (6M Free Burgers in 1 Hour) - System Design
“Design a flash sale” sounds like a shopping-cart problem until you write down the actual numbers: Burger King runs a promo, the app has 50 …
Read MoreDesign IRCTC Train Booking (Tatkal) - System Design
“Book a train ticket” sounds like inserting a row. Then you look at Tatkal. At 10:00:00 sharp, a few days’ worth of demand for a scarce …
Read MoreDesign MakeMyTrip Travel Search - System Design
“Design MakeMyTrip” sounds like a shopping app: a user types two cities and a date, a list of flights comes back, they pick one and pay. The …
Read MoreDesign an Authentication & Login System - System Design
“Let users log in” is the request that hides an entire distributed system. You need to store a password without ever storing the password, …
Read MoreDesign Facebook Marketplace - System Design
Facebook Marketplace looks like “Craigslist with photos,” and if you design it that way you will fail the interview. The naive read is a …
Read MoreDesign Live Stock Prices Worldwide (Bloomberg) - System Design
“Show live prices for every stock on every exchange to millions of people at once” reads like a websocket that pushes a number. Then you …
Read MoreDesign Cluster Health Monitoring - System Design
“Monitor the health of the cluster” sounds like a cron job that pings every box and pages someone when one goes quiet. Then you put 50,000 …
Read MoreDesign On-Call Escalation (PagerDuty) - System Design
Everyone thinks PagerDuty is a glorified SMS sender. “A monitoring tool posts an alert, you look up who is on call, and you text them. If …
Read MoreDesign P2P File Transfer (BitTorrent) - System Design
The whole point of a file-transfer service sounds like a solved problem: put the file on a server, hand out a URL, let people download. That …
Read MoreDesign Facebook Likes with Live Updates (Including Celebrities) - System Design
Tapping “Like” is the smallest interaction Facebook has. It is one bit: you either like a post or you do not. It looks like a toggle on a …
Read MoreDesign Live Comments on Facebook - System Design
Live comments look like a solved problem until you put a number on it. A celebrity goes live, a million people are watching, and comments …
Read MoreDesign Live Page Viewer Count (Booking.com) - System Design
“23 people are looking at this hotel right now.” It is one line of text, a soft nudge that the room might not be here tomorrow. It looks …
Read MoreDesign a Wire Transfer API - System Design
A wire transfer looks like the wallet transfer’s twin, and interviewers love it because it is not. In a wallet, “move 500 from Alice to Bob” …
Read MoreDesign Distributed Tracing (Jaeger / Dapper) - System Design
One request hits your API gateway, which calls auth, which calls the user service, which calls three downstream services, two of which hit a …
Read More