System Design Use Cases

System Design Use Cases

Real-world system design case studies, each built to a single, strict framework: precise requirements → capacity estimation → high-level architecture → iterative refinement → deep dives (APIs, schema, data structures, algorithms) → interview tips, resiliency, and observability.

New designs follow the shared framework template (_TEMPLATE.md) in this folder.

URL Shortener
Key generation, base62, cache-aside redirects, bloom filters, analytics
Rate Limiter Service
Token bucket & sliding window, Redis Lua atomicity, fail-open vs fail-closed
Real-Time Leaderboard
Redis sorted sets, top-N & rank queries, tie-breaking, sharded scaling
Distributed Cache
Consistent hashing, stampede prevention, hot-key replication, eviction
Typeahead / Autocomplete
Trie with top-K per node, offline pipeline, trending updates, sharding
Notification System
Multi-channel fan-out, DLQ retries, dedup, user preferences
Key-Value Store
Consistent hashing, quorum R/W, gossip failure detection, LSM storage
Distributed Message Queue
Partitioned logs, consumer groups, ISR replication, exactly-once
Twitter Home Timeline
Fan-out on write vs read, hybrid for celebrities, ranking, media
Instagram / Photo Sharing
Media pipeline, CDN delivery, hybrid feed fan-out, likes at scale
Web Crawler
URL frontier, bloom-filter dedup, politeness, distributed coordination
Search Engine
Inverted index, BM25, sharded query processing, link analysis
Uber / Ride-Sharing
Geospatial indexing, matching, trip tracking, surge, payments
WhatsApp / Chat System
WebSockets at scale, message ordering, delivery receipts, E2E encryption
YouTube / Video Streaming
Transcoding pipeline, adaptive bitrate (HLS/DASH), CDN, metadata
Google Maps / Navigation
Road-network graph, A* routing, map tiles, real-time traffic, ETA
Dropbox / Google Drive
Chunking, content-addressed dedup, delta sync, conflict resolution
Payment System
Idempotency, double-entry ledger, saga/outbox, reconciliation