System design
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
33 write-ups
| Title | Difficulty |
|---|---|
| Design a URL Shortener Turn long URLs into short, unique codes and redirect billions of clicks a day quickly, with custom aliases, expiry, and a Pastebin-style variant for text. | Easy |
| Design Twitter Post short messages, follow people, and load a home timeline in under 200ms, even when an account with 100 million followers tweets. | Medium |
| Design YouTube Accept multi-gigabyte uploads, turn them into adaptive streams in many resolutions, and serve billions of views a day without the origin ever feeling it. | Medium |
| Design a CDN Serve customers' content from hundreds of edge locations, steer each user to a nearby one with anycast and DNS, protect the origin, and purge stale objects worldwide in seconds. | Hard |
| Design a Distributed Cache Grow a single memcached-style server into a cluster that serves millions of reads a second, evicts with LRU, survives node loss without crushing the database, and stays close to the source of truth. | Medium |
| Design a Flight Search Engine Search flights across airlines and travel agencies like Skyscanner, Kayak or Google Flights, building connecting itineraries, streaming results from slow providers, caching prices and sending deal alerts. | Hard |
| Design a Food Delivery App like DoorDash Browse nearby restaurants and menus at 50k QPS, place and pay for an order, dispatch it to a courier and track it live on a map, as DoorDash, Uber Eats, Swiggy and Zomato do. | Hard |
| Design a Leaderboard Rank 100 million players in real time, show the global top 100, any player's exact rank and a friends-only board, with sorted sets, tie-breaking and sharding when one node isn't enough. | Medium |
| Design a Podcast Platform Host podcasts end to end. Creators upload and publish episodes, we generate RSS feeds polled by every podcast app, deliver audio through a CDN, and notify subscribers when new episodes drop. | Medium |
| Design a Proximity Service like Yelp Find businesses near a user, filtered and ranked, in under 200ms over 200 million places, using geohashes, quadtrees or PostGIS, plus location-based restaurant recommendations. | Medium |
| Design a Reviews and Ratings System Let users rate and review items, show an average and star histogram on every listing, keep aggregates right through edits and deletes, and rank items fairly when some have only a handful of ratings. | Medium |
| Design a Tagging Service One tagging service shared by an issue tracker, a wiki and a code host, that shows the tags on any item, lists every item with a tag, and ranks popular tags. | Medium |
| Design a Web Search Engine Answer 100k queries a second over ten billion pages in a few hundred milliseconds, with an inverted index sharded across thousands of machines, multi-stage ranking and a fresh index. | Hard |
| Design an E-Commerce Platform like Amazon A catalog of 500M products, faceted search, durable carts and a checkout that never oversells or double charges, all built to survive a sale day with 10x normal traffic. | Medium |
| Design DNS Resolve names to addresses at millions of queries per second, from the root down to authoritative servers, with caching, fast record updates, anycast and defenses against poisoning and DDoS. | Medium |
| Design Google Photos Back up every photo from billions of phones, store exabytes of them cheaply across storage tiers, and serve the right-sized image in milliseconds, the way Facebook and Instagram do. | Medium |
| Design Netflix Stream a known, curated catalog to hundreds of millions of members at peak evening load by putting the video inside ISPs before anyone presses play, plus a Top 10 per country. | Medium |
| Design Reddit Communities, posts, up and down votes, ranked feeds and deeply nested comment threads, plus how the same design stretches to Quora and Stack Overflow with reputation. | Medium |
| Design Spotify Stream any of 100 million tracks in a few hundred milliseconds, keep playlists consistent under shared edits, control playback by voice across devices, and sync audiobook progress. | Medium |
| Design TikTok An endless feed of short videos that start the instant you swipe, ranked for each viewer from hundreds of millions of candidates in a few hundred milliseconds. | Medium |