- Learn
- High Level System Design
- Design Case Studies
HLD-M19
Design Case Studies
Twenty-three classic designs worked end to end: requirements, estimates, API, data model, architecture, deep dives, failure modes and trade-offs.
This module is where the whole track comes together. Each lesson takes one well-known product, from a URL shortener to a stock exchange and an LLM chat service, and designs it with the method from the previous module: scope the requirements, run the numbers, define the API and data model, draw the read, write and background paths, then go deep on the parts most likely to break.
The designs are not answer keys. Each one makes choices and says why, names what it gives up, and lists how it fails. Read them for the reasoning, try each prompt yourself first, and use the cross-links to revisit any building block that feels shaky.
Lessons
- HLD-19.01 Design a URL shortener A URL shortener maps short codes to long URLs. Beginner 20 min
- HLD-19.02 Design a pastebin A pastebin stores text snippets and returns a link. Beginner 15 min
- HLD-19.03 Design a rate limiter service A rate limiter service decides per request whether a client is over its limit. Intermediate 20 min
- HLD-19.04 Design a distributed key-value store A distributed key-value store partitions keys with consistent hashing, replicates each key to N nodes, and uses quorum reads and writes to tune consistency. Advanced 25 min
- HLD-19.05 Design a unique ID generator A unique id generator must produce ids without collisions at high rate, often sortable by time and fitting in 64 bits. Intermediate 12 min
- HLD-19.06 Design a news feed (Twitter/Instagram) A news feed shows posts from accounts a user follows. Intermediate 25 min
- HLD-19.07 Design a chat system (WhatsApp/Slack) A chat system keeps users connected through WebSocket gateways, routes messages through a messaging service to the recipient's gateway, and stores history in a write-optimized store partitioned by conversation. Intermediate 25 min
- HLD-19.08 Design a notification system A notification system accepts requests from many services, applies user preferences and rate limits, renders templates and sends messages through push, SMS and email providers. Intermediate 18 min
- HLD-19.09 Design a web crawler A web crawler starts from seed URLs, fetches pages, extracts links and adds new ones to a URL frontier. Intermediate 20 min
- HLD-19.10 Design search autocomplete Search autocomplete aggregates query logs offline to count popular queries, builds a trie or prefix index holding the top suggestions for each prefix, and serves them from memory with aggressive caching. Intermediate 18 min
- HLD-19.11 Design YouTube / Netflix (video streaming) A video platform accepts uploads into object storage, then a transcoding pipeline splits videos into chunks and encodes them into several resolutions and bitrates in parallel. Advanced 25 min
- HLD-19.12 Design Google Drive / Dropbox A file sync service splits files into chunks identified by content hashes, so only changed chunks are uploaded and identical chunks are stored once. Advanced 22 min
- HLD-19.13 Design a ride-hailing service (Uber) A ride-hailing system ingests driver location updates every few seconds, keeps them in an in-memory geospatial index, and matches riders to nearby available drivers. Advanced 25 min
- HLD-19.14 Design a proximity service (Yelp, nearby places) A proximity service finds businesses near a location. Intermediate 18 min
- HLD-19.15 Design a payment system A payment system records every movement of money in a double-entry ledger, calls external payment providers and must never charge twice. Advanced 25 min
- HLD-19.16 Design a ticket booking system (BookMyShow) A ticket booking system must prevent two people buying the same seat. Advanced 20 min
- HLD-19.17 Design a distributed job scheduler A distributed job scheduler stores job definitions and next run times, and a set of scheduler nodes, either coordinated by a leader or partitioned by job id, find due jobs and dispatch them to workers through a queue. Advanced 18 min
- HLD-19.18 Design a metrics and monitoring system A monitoring system collects metrics from many hosts, by agents pushing or the server pulling, stores them in a time-series database with downsampling and retention, evaluates alert rules continuously and renders dashboards. Advanced 20 min
- HLD-19.19 Design a real-time leaderboard A real-time leaderboard needs fast score updates and fast top-N and rank queries. Intermediate 15 min
- HLD-19.20 Design a collaborative editor (Google Docs / Figma) A collaborative editor lets many users edit the same document at once. Advanced 22 min
- HLD-19.21 Design an ad click aggregator An ad click aggregator ingests a huge stream of click events, deduplicates them, aggregates counts per ad per minute with a stream processor and stores results for querying and billing. Advanced 20 min
- HLD-19.22 Design a stock exchange / order matching engine A stock exchange matches buy and sell orders in an order book per symbol. Advanced 22 min
- HLD-19.23 Design an LLM chat service (ChatGPT-like) An LLM chat service streams generated tokens to users over Server-Sent Events. Advanced 22 min