SysDesignAtlas

Case Studies

Finished designs, end to end: requirements, estimation, API, data model, deep dives, failure modes.

HLDEasy11 min

Design a URL Shortener

The classic opener. Deceptively simple, and a precise test of whether you scope, estimate, and pick an ID strategy for stated reasons.

HLDMedium10 min

Design a Distributed Rate Limiter

A deceptively deep question. The algorithm is the easy part; the interview lives in distributed counter accuracy, latency budget, and what happens when the store is down.

HLDHard12 min

Design a News Feed (Twitter / Facebook)

The definitive fanout question. Push vs pull, the celebrity problem, and why the correct answer is a hybrid with an explicit threshold.

HLDHard11 min

Design a Chat System (WhatsApp / Messenger)

Persistent connections at scale, the message routing problem, delivery guarantees and ordering, plus group chat fanout and end-to-end encryption.

HLDMedium10 min

Design a Notification System

Multi-channel delivery at scale — push, SMS, email — with third-party providers you don't control, deduplication, user preferences, and rate limits that protect users from you.

HLDHard11 min

Design a Distributed Key-Value Store

Building Dynamo from first principles — consistent hashing, quorums, vector clocks, anti-entropy, and the failure handling that makes it stay available.

HLDHard11 min

Design a Video Streaming Platform (YouTube / Netflix)

The upload-and-transcode pipeline, adaptive bitrate streaming, and why the CDN isn't an optimization here — it's the architecture.

HLDHard11 min

Design a Ticket Booking System (Ticketmaster)

Extreme burst traffic against a hard correctness constraint. Seat reservation without double-booking, the virtual waiting room, and why this is the case study where consistency wins.

HLDHard10 min

Design a Ride-Sharing Service (Uber / Lyft)

Millions of moving objects, geospatial matching under a latency budget, and a trip state machine that must survive every kind of failure.

HLDHard11 min

Design an Ad Click Aggregator

Stream processing at enormous scale with a hard requirement most systems don't have — the numbers are money, so approximate isn't good enough.

HLDMedium10 min

Design a Distributed Job Scheduler

Running work at the right time, exactly once enough, across a fleet — with retries, dependencies, and the hard problem of not losing jobs when a worker dies.

HLDMedium10 min

Design Search Autocomplete

Sub-50ms suggestions at every keystroke — tries, precomputation, and the realization that the read path must never compute anything.

HLDMedium10 min

Design a Web Crawler

Politeness, frontier management, and deduplication at a scale where "have I seen this URL?" is itself a hard systems problem.

HLDHard11 min

Design a Payment System

Double-entry ledgers, idempotency where duplicates cost real money, the saga across external providers, and why reconciliation is not optional.

HLDHard11 min

Design a Collaborative Editor (Google Docs)

Concurrent editing without conflicts — operational transformation versus CRDTs, cursor presence, and how documents are actually persisted.

HLDMedium11 min

Design a Distributed Cache

Building Memcached/Redis from first principles — sharding, eviction, replication, and the hot key problem that consistent hashing cannot solve.

HLDHard11 min

Design Dropbox / Google Drive

Files that follow you to every device — split into chunks named by their content, so only changed parts travel and identical data is stored once; a per-folder change log every device replays; and an honest answer for two people editing the same file offline.

HLDHard12 min

Design a Message Queue (Kafka-like)

A queue that keeps messages instead of deleting them — topics split into append-only logs, consumers that track their own position, replication that decides when a message is truly safe, and the disk tricks that let one machine move gigabytes a second.

HLDHard12 min

Design a Metrics & Monitoring System

Millions of numbers a second from every server, stored cheaply enough to keep, queried fast enough for a live dashboard, and watched by alert rules — with the time-series storage tricks and the cardinality trap that decide whether it survives.