Skip to content

Messaging and scale

Patterns for coordinating services through messages and spreading the work when load goes up.

5 guides99 min in totalSystem patterns

The guides, in order

Read them top to bottom: each one builds on the ones before. The ones you've read carry a check.

About this group

What you'll find
Sagas with compensations, queues to absorb bursts, competing consumers, backpressure and DataLoader for the N+1 problem.
It's for you if…
your design spans several services or gets load spikes and you need to explain how the work is shared out.
How each guide works
Each guide explains the problem, the solution and an analogy, with a diagram, pseudocode and code in TypeScript, Python and PHP. It also covers when to apply it, its trade-offs, how it fails and how to mitigate that, and when and how to bring it up in an interview.