Messagingfanoutfan out

Fan-out

Definition

Fan-out is the act of distributing a single event, message or request to multiple destinations, such as subscriptions, channels, followers or backend shards.

In practice

Fan-out is how one action reaches everyone who cares: a chat message goes to each participant's connection, a notification goes to push, email and SMS queues, and a query goes to every shard. Splitting the work into separate queues per destination isolates failures, so one slow channel does not delay the others.

The cost is multiplication. A message to a group of 10,000 members is 10,000 deliveries, and a request fanned out to 50 shards is only as fast as the slowest one. Bound fan-out width, batch deliveries, and watch for amplification when large senders or campaigns cause bursts.

Example

One PaymentReceived notification fans out to push, email and sms queues; the SMS provider is down, its queue grows, and push and email deliveries continue normally.