Part VI — Building Blocks
Every design round is built from the same small set of components. Learn what each one buys, what it costs, and where it fails. Most architectures then come down to choosing which ones the requirements actually pay for.
Read this section for the trade-offs, not the product names. A cache is a cache whether it is Redis or Memcached. What matters is the invalidation strategy and the stampede.
Chapters
| # | Chapter | What it answers |
|---|---|---|
| 01 | Load Balancing | L4 or L7, and what happens the moment a node dies? |
| 02 | Caching | What to cache, where, and how it goes stale |
| 03 | Content Delivery Network | How much traffic never reaches your origin? |
| 04 | Queues, Async Work and WebSockets | What comes off the request path, and what does holding a live connection cost? |
| 05 | Service Boundaries and the API Gateway | Where do you split, and what belongs at the edge? |
| 06 | Resilience Patterns | What happens when a dependency stops answering? |
What Interviewers Probe For
- Do you reach for the cheapest component that works? Proposing a message broker for work that a database row and a cron job would carry is a common over-engineering signal.
- Can you name what a component costs? A cache costs staleness. A queue costs eventual consistency and a duplicate-delivery problem. A gateway costs a hop and a shared component.
- Do you know the failure mode? Every block here has one that shows up in production, never in a tutorial. Think of the health check that takes down the fleet, the cache stampede, the retry storm.
- Do you keep business logic out of infrastructure? The gateway routes; services decide.
Reading Order
01 → 02 → 03 are the components almost every round touches, in the order a request meets them. 04 covers the two ways work leaves the request path. 05 and 06 belong together. They are the distributed-systems half of the section.
Interview sprint: 01, 02 and 04, then 06.
⚠️ File storage and monitoring are in Part VIII, in Cloud Fundamentals, Storage and Delivery and the Observability chapters. WebSockets and the API gateway are taught inside the chapters that use them.