Skip to content

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 ​

#ChapterWhat it answers
01Load BalancingL4 or L7, and what happens the moment a node dies?
02CachingWhat to cache, where, and how it goes stale
03Content Delivery NetworkHow much traffic never reaches your origin?
04Queues, Async Work and WebSocketsWhat comes off the request path, and what does holding a live connection cost?
05Service Boundaries and the API GatewayWhere do you split, and what belongs at the edge?
06Resilience PatternsWhat 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.

The whole book, free to read. Generated from the manuscript on every change.

Your progress

Tick each chapter in the sidebar once you have read and understood it. Your name and email keep the ticks on any device.

Your name and email are stored to save your progress. Nothing else is done with them.