Distributed Communication Patterns#

Forty-seven sections, from what a TCP connection actually costs to how a saga unwinds a half-finished order. Each section builds only on the ones before it, so it reads straight through — but every pattern is also self-contained enough to look up when you meet it in a design review. Press Play on any animation.

47 Topics • Interactive Animations & Code Examples
Unit 1

Wire Foundations#

How tightly two services are bound, what actually travels across the wire, and how its shape can change without breaking anyone.

Unit 2

Synchronous APIs & Routing#

The request–response styles — REST, gRPC and GraphQL — how they evolve, and the infrastructure that routes each call to a healthy instance.

Unit 3

Resilience#

Timeouts, retries, idempotency, breakers, bulkheads and health checks — making failure cheap and contained instead of contagious.

Unit 4

Asynchronous Messaging#

Queues, pub/sub and logs, what delivery and ordering guarantees really mean, and how to cope with poison messages and slow consumers.

Unit 5

Data Consistency & Workflows#

Keeping state correct across service boundaries with the outbox, CDC, events, CQRS, sagas and two-phase commit, plus composing and caching calls between services.

Unit 6

Real-Time & Client-Facing Communication#

Getting updates to browsers and partners — polling, server-sent events, WebSockets and webhooks — and returning results for work that takes minutes.

Unit 7

Coordination, Operations & Review#

The theory underneath (consensus and time), the practice of observing and testing a distributed system, and the reference pages to keep.