Senior answers.Staff judgment.Principal scope.
Every level can draw the boxes. What separates Senior, Staff and Principal answers is what you notice before you draw them and what you own after. Study the answer one level above where you are now.
“What are we protecting: infrastructure from abuse, paid quotas, or tenants from each other? They fail in opposite directions. For abuse I'd go local-first and fail-open, because a Redis hop on every request is a 5–10ms tax and a kill switch.”
Names the intent, the latency trap and who owns the failure mode. Clears the Staff bar.
Suggested order
Each step builds on the one before it. Skip ahead if the earlier material is already second nature.
- Foundations
Latency numbers, consistency, hashing and estimation. The vocabulary the rest of the library assumes.
- Patterns
Contention, scaling reads and writes, degraded mode. Reusable moves for any prompt.
- Start here
Seven case studies in teaching order, from a URL shortener to multi-region active-active. Each one adds a new kind of hard decision.
- Case studies by domain
Traffic, storage, streaming, money, real-time and more, each with a Principal lens on cost, standards and multi-year evolution.
Start here
All case studiesRead these in order. Each one builds on the last and adds a new kind of hard decision.
- URL ShortenerWhat turns a ten-minute problem into a Staff one?
- Distributed CacheWhen the cache and the database disagree, who is right?
- Message BrokerWhat happens to a message nobody can process?
- PaymentsHow do you never charge twice and never lose a payment?
- News FeedPush to followers or pull at read time, and what about celebrities?
- Stopping Cascading FailuresHow does one slow dependency take down everything, and where do you cut it off?
- Multi-Region Active-ActiveTwo regions accepted conflicting writes. Which one wins?
Case studies by domain
Traffic & Edge
Everything between the user's request and your first service.
Resilience & Operations
How systems fail, recover, and get changed safely.
- Stopping Cascading Failures83 min · 9 diagrams
- Multi-Region Active-Active80 min · 8 diagrams
- Metrics & Alerting Platform66 min · 7 diagrams
- Autoscaling & Capacity71 min · 8 diagrams
- Feature Flags & Config97 min · 10 diagrams
- Deployment System97 min · 10 diagrams
- Distributed Tracing79 min · 9 diagrams
- Log Aggregation Platform80 min · 8 diagrams
Storage & Retrieval
Where data lives and how it's found again.
Async & Streaming
Work that happens after the request returns.
Money & Correctness
Where one wrong answer costs real money or trust.
- Payments76 min · 9 diagrams
- Idempotency & Exactly-Once81 min · 9 diagrams
- ID Generation83 min · 7 diagrams
- Distributed Lock Service82 min · 8 diagrams
- Consensus Service70 min · 10 diagrams
- Stock Exchange66 min · 7 diagrams
- Login & Sessions93 min · 12 diagrams
- Ledger & Digital Wallet86 min · 9 diagrams
- Key Management Service89 min · 9 diagrams
Booking & Inventory
Scarce things, many buyers.
Real-Time & Collaboration
Many people, one shared state, right now.
Location & Marketplaces
Matching supply and demand on a map.
Social & Media
Feeds, video and counters at consumer scale.
Tools
Calculators
Back-of-envelope estimates, latency budgets, availability and sharding, with the formulas shown.
Foundations
Open sectionThe mental models Staff answers are built on. Fast to read, slow to master.
- Latency, Protocols & Tail Amplification36 min · 5 diagrams
- How Caches Work (and Lie)39 min · 6 diagrams
- Hash Rings & Rebalancing32 min · 6 diagrams
- Consistency, CAP & PACELC32 min · 5 diagrams
- Estimation on a Whiteboard31 min · 4 diagrams
- API Contracts That Age Well32 min · 4 diagrams
- Indexes: B-Trees, LSMs and the Query Planner32 min · 4 diagrams
- Schema Design from Access Patterns31 min · 4 diagrams
- Partitioning & Partition Keys32 min · 4 diagrams
- Replication40 min · 6 diagrams
- Clocks, Ordering & Time36 min · 6 diagrams
- Queueing Theory for System Design33 min · 5 diagrams
- Security Basics for System Design37 min · 5 diagrams
Frameworks & Patterns
Open sectionCross-cutting patterns you reuse in every design. Learn once, apply everywhere.
- Read-Heavy Systems36 min · 5 diagrams
- Write-Heavy Systems37 min · 5 diagrams
- Concurrency Control: Locks, CAS & Queues40 min · 5 diagrams
- Push vs Poll37 min · 5 diagrams
- Batch & Stream Pipelines37 min · 5 diagrams
- Graceful Degradation: Fail Open or Closed37 min · 5 diagrams
- Coordination Strategies: Leases, Leaders & Reconciliation36 min · 5 diagrams
- Buy or Build: The Total-Cost Test38 min · 6 diagrams
- Large File Uploads & Delivery35 min · 6 diagrams
- Workflows, Sagas & Compensation35 min · 5 diagrams
- Hot Keys50 min · 8 diagrams
- Backpressure & Overload45 min · 5 diagrams
- Transactional Outbox & Change Data Capture44 min · 5 diagrams
- Multi-Tenancy & Noisy Neighbours44 min · 4 diagrams
- Online Schema & Data Migrations44 min · 4 diagrams
- CQRS & Event Sourcing47 min · 5 diagrams
- Abuse & Bot Defence47 min · 5 diagrams
- Cell-Based Architecture47 min · 5 diagrams
Key Technologies
Open sectionWhat each tool is actually good at, how it fails, and when to say no.
- Redis43 min · 6 diagrams
- PostgreSQL42 min · 5 diagrams
- Cassandra43 min · 5 diagrams
- DynamoDB40 min · 5 diagrams
- Distributed SQL53 min · 8 diagrams
- S3 & Object Storage43 min · 5 diagrams
- Memcached42 min · 6 diagrams
- Elasticsearch39 min · 6 diagrams
- Time-Series Databases39 min · 5 diagrams
- Real-Time OLAP53 min · 6 diagrams
- Vector Databases40 min · 5 diagrams
- Apache Kafka39 min · 7 diagrams
- Apache Flink36 min · 6 diagrams
- RabbitMQ & SQS44 min · 6 diagrams
- Envoy, Kong & NGINX44 min · 6 diagrams
- etcd & ZooKeeper37 min · 6 diagrams
- Kubernetes52 min · 7 diagrams
- Temporal & Workflow Engines39 min · 5 diagrams
- gRPC39 min · 5 diagrams
Comparisons
Open sectionA verdict first, then when the other one wins and how each fails.
- Kafka vs SQS vs RabbitMQ19 min · 3 diagrams
- Kafka vs Kinesis16 min · 3 diagrams
- Postgres vs DynamoDB18 min · 3 diagrams
- Cassandra vs DynamoDB16 min · 3 diagrams
- Spanner vs CockroachDB vs Aurora19 min · 4 diagrams
- Redis vs Memcached16 min · 3 diagrams
- Elasticsearch vs Postgres Full-Text Search18 min · 3 diagrams
- ClickHouse vs Druid vs Pinot19 min · 4 diagrams
- Flink vs Spark Streaming vs Kafka Streams19 min · 3 diagrams
- etcd vs ZooKeeper vs Consul19 min · 4 diagrams
- REST vs gRPC vs GraphQL19 min · 4 diagrams
- WebSockets vs SSE vs Long Polling16 min · 3 diagrams