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.
18 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 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 Live Sports Score Service Get a goal or a wicket from the stadium to 50 million phones in a few seconds, keep scores correct across multiple data sources, and survive the spike of a World Cup final. | Medium |
| Design a News Aggregator Pull articles from tens of thousands of publishers through RSS, push and crawling, group duplicate stories, and serve fast topic and personalized feeds, plus a variant that aggregates users' social media accounts. | Medium |
| Design a Recommendation System The serving and data side of recommendations, from Netflix-style home rows and "customers also bought" to an Instagram-style Explore feed, with candidate retrieval, ranking and freshness. | Hard |
| Design a Weather App Show current conditions, hourly forecasts and alerts to millions of users, ingesting National Weather Service and third-party data so nothing on screen is more than 10 minutes behind its source. | Easy |
| Design an Internationalization System Manage UI strings in 50 languages with correct plurals, pronouns and formats, give translators a reviewed and audited workflow, ship updates without app releases, and translate user posts on demand. | 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 Truecaller Show who's calling and whether it's spam before the second ring, from a crowdsourced directory of billions of numbers, with spam reports that resist abuse. | Medium |
| Design Typeahead Autocomplete Return the top ten query suggestions for every keystroke in under 100ms, keep them fresh as trends change, and handle typos, next-word suggestions and instant results. | Medium |
| Redis What you need to know about Redis for system design interviews, including its data structures, single-threaded model, expiry and eviction, persistence, replication, Redis Cluster, common patterns and Memcached vs Redis. | |
| GraphQL What you need to know about GraphQL for system design interviews, including schemas and resolvers, the N+1 problem and DataLoader, pagination, caching, query cost limits, subscriptions and federation. | |
| Nginx What you need to know about Nginx for system design interviews, including its event-driven architecture, reverse proxying, load balancing, TLS termination, caching, rate limiting and where it fits. | |
| Caching Strategies Where to cache, how to read and write through a cache, eviction, invalidation and its race conditions, and the failure modes that matter at scale: stampedes, penetration, avalanches and hot keys. | |
| Consistent Hashing How to spread keys over a changing set of machines without reshuffling everything. Mod-N vs the hash ring, virtual nodes, replicas, rendezvous, jump and Maglev hashing, fixed slots and bounded loads. | |
| What Happens When You Type a URL The journey from typing a URL to a rendered page. HSTS, DNS resolution, TCP, TLS and QUIC, CDNs and load balancers, the server, and browser rendering, with a latency budget. |