Design a Food Delivery System (Swiggy / Zomato) - System Design
“Design Swiggy” looks like a restaurant catalogue with a Buy button. Browse restaurants, tap dishes into a cart, pay, wait for food. The …
Read MoreDesign Google Maps / Nearby Search - System Design
“Design Google Maps” sounds like it is about drawing a map. It is not. The map tiles are the easy, cacheable part. The interviewer is really …
Read MoreDesign a Distributed Unique ID Generator - System Design
Almost every large system needs one boring-sounding thing: a way to mint unique identifiers. Tweet IDs, order IDs, message IDs, row keys. It …
Read MoreDesign a Key-Value Store (like DynamoDB) - System Design
A key-value store looks like a solved problem for about thirty seconds. “Put a value under a key, get it back later, it is a hash map.” Then …
Read MoreDesign a Metrics and Monitoring System - System Design
Everyone thinks a monitoring system is a database with a graph on top. “Every server writes its CPU and memory somewhere, you draw a line …
Read MoreDesign a Distributed Message Queue (like Kafka) - System Design
Everyone thinks a message queue is a list. “Producers push messages onto the back, consumers pop them off the front, done - it is a queue, …
Read MoreDesign YouTube / a Video Streaming Platform - System Design
A video platform looks trivial for about five seconds: POST /video to upload, GET /video to play. Then you remember that one uploaded file …
Read MoreDesign a Real-Time Leaderboard - System Design
Everyone thinks a leaderboard is a SELECT ... ORDER BY score DESC LIMIT 100. “Store the scores, sort them, return the top 100, done.” Then …
Read MoreDesign a Web Crawler - System Design
Everyone starts a web crawler the same way: a queue of URLs, a while loop, fetch, parse out the links, push them back on the queue, repeat. …
Read MoreDesign an Ad Click Aggregator - System Design
Everyone thinks an ad click aggregator is a SELECT COUNT(*) ... GROUP BY ad_id. “Log every click, count the rows, show the advertiser their …
Read MoreDesign BookMyShow / a Ticket Booking System - System Design
“Design BookMyShow” looks like a catalogue app: list cities, list movies, list showtimes, take a payment, print a QR code. The interviewer …
Read MoreDesign Dropbox / a File Sync and Storage Service - System Design
A file sync service sounds like a glorified upload button until you count the bytes. The naive version is a single PUT /file that stores a …
Read MoreDesign Search Autocomplete / Typeahead - System Design
Everyone thinks autocomplete is a LIKE 'prefix%' query. “Index the search terms, run a prefix match, return the top ten, done.” Then the …
Read MoreDesign a Distributed Cache (like Redis) - System Design
Everyone thinks a cache is a hash map with a size cap. “Store key-value pairs in RAM, evict when it fills up, done.” Then the interviewer …
Read MoreDesign a Payment System / Digital Wallet - System Design
“Move 500 rupees from Alice to Bob” sounds like an UPDATE statement. Then you think about it. What if the request times out and the client …
Read MoreDesign Google Docs / Collaborative Editing - System Design
A document editor sounds trivial until you put two people in the same document. One editor is a text box that saves to a database: type, PUT …
Read MoreDesign a Notification System (Push, Email, SMS) - System Design
“Send the user a notification” sounds like one function call. Then you write it down. Which channel - push, email, SMS, in-app? What if the …
Read MoreDesign a Rate Limiter - System Design
Everyone thinks the rate limiter is a for-loop with a counter. “Count requests per user per minute, reject when it goes over 100, done.” …
Read MoreDesign Uber / a Ride-Hailing System - System Design
“Design Uber” sounds like a CRUD app with a map on top. A rider taps a pin, a driver shows up, money moves. The interviewer lets you believe …
Read MoreDesign a URL Shortener (TinyURL) - System Design
Everyone thinks the URL shortener is a trivial problem. “It’s a hash map. Store long URL, return short URL, done.” Then the interviewer …
Read More