URL Shortener
TinyURL / Bit.ly — key generation, 301 vs 302, caching, analytics
THE SYSTEM DESIGN FIELD GUIDE
Go beyond the boxes and arrows. Explore real-world
architectures, understand the tradeoffs, and build your intuition.
Pick a system. Follow the decisions. See the whole picture.
The building blocks of scalable systems.
TinyURL / Bit.ly — key generation, 301 vs 302, caching, analytics
Token bucket, sliding window, distributed rate limiting
Distributed KV store — consistent hashing, replication, gossip
Politeness, URL frontier, deduplication, distributed crawling
Keep people and services connected.
WhatsApp / Slack — WebSocket, message ordering, presence, E2E encryption
Push, email, SMS — priority queues, template engine, delivery tracking
Google Docs — OT/CRDT, conflict resolution, cursor sync
Deliver great experiences at any scale.
Find the right thing, at the right time.
Google — inverted index, PageRank, query processing, distributed indexing
Trie-based, prefix search, ranking by popularity
Yelp — geospatial indexing, quadtree, geohash, nearby search
Collaborative filtering, content-based, hybrid, real-time ranking
The systems that other systems depend on.
Kafka — append-only log, ISR, partitioning, exactly-once, consumer groups
CloudFront / Cloudflare — edge caching, Anycast, TLS, edge compute, DDoS
Redis / Memcached — eviction, persistence, clustering, cache patterns
S3 — erasure coding, 11 nines durability, metadata separation, GC
Celery / Temporal — delayed tasks, cron, DAG workflows, retry, saga
Make every transaction count.
Stripe — idempotency, double-entry ledger, tokenization, PCI, fraud
Amazon — catalog, cart, checkout saga, inventory, search, flash sales
Ticketmaster — seat maps, hold with Redis SET NX, virtual waiting room, anti-bot
Uber / Lyft — H3 geospatial, driver matching, surge pricing, real-time tracking
Better experiences, built together.
LinkedIn / Facebook — adjacency lists, mutual connections, PYMK, BFS, TAO
Datadog / Prometheus — TSDB, Gorilla compression, alerting, SLOs
Dropbox / Google Drive — CDC chunking, delta sync, dedup, conflict resolution
Design for the next generation of products.
OpenAI API / SageMaker — GPU scheduling, continuous batching, PagedAttention, LoRA
Retrieval-Augmented Generation — chunking, hybrid search, reranking, citations
Event sourcing, CQRS, sagas, CDC, schema registry, dead letter queues
Tenant isolation, noisy neighbor, tiered plans, RLS, billing metering