Skip to content
System Design Lab

6 topics

Case Studies

Classic systems designed end to end: requirements, estimates, then a design that evolves as each simulated version hits its limit.

Classic system designs

Beginner 5 min read

Design a URL Shortener

The classic warm-up: turn long links into short codes and redirect billions of clicks. From requirements and estimates to a design that grows from one database to caches and edge redirects.

Cases
Intermediate 5 min read

Design a Notification System

Send push, SMS and email at scale without letting a marketing blast delay a login code. From a synchronous call to a queue with workers and priority lanes, plus retries, preferences and deduplication.

Cases
Advanced 5 min read

Design a Payment System

Charge cards reliably when networks time out and providers are slow: idempotency keys, a double-entry ledger, state machines, webhooks and reconciliation — and why a naive retry bills customers twice.

Cases
Intermediate 5 min read

Design a Chat Service

Deliver messages in real time to millions of connected users: why polling is slow and wasteful, how WebSockets push instantly, and what breaks — and how pub/sub fixes it — once connections span many servers.

Cases
Advanced 4 min read

Design a News Feed

Show each user the latest posts from everyone they follow: fan-out on read is slow to load, fan-out on write melts down when a celebrity posts, and the hybrid most large networks use gets the best of both.

Cases
Intermediate 4 min read

Design Search Autocomplete

Suggest completions while the user types — within a keystroke's time. Why querying the database per keystroke fails, how a precomputed prefix index answers in milliseconds, and how debouncing and edge caching cut the load.

Cases