Topology and routing answer different questions
How fan-out's one-to-many distribution topology differs from publish-subscribe's subscription-based routing model, and why neither requires the other. · advanced
Fan-out describes a one-to-many distribution topology: one input causes work at multiple downstream destinations. It says that work branches, but not how those destinations were chosen. Explicit calls, parallel workflow branches, and subscription-based delivery can all produce fan-out.
Publish-subscribe describes a routing model. A publisher addresses a logical destination, such as a topic, and messaging infrastructure uses subscriptions to determine eligible recipients. A subscription expresses interest in messages; it can include a filter, but filtering is not required.
The distinction is distribution shape versus recipient selection. A branching diagram alone does not establish publish-subscribe: you must know what controls delivery. Likewise, knowing that subscriptions control delivery does not establish that a particular message reaches multiple destinations.
| Dimension | Fan-out | Publish-subscribe |
|---|---|---|
| Describes | One-to-many branching | Subscription-based routing |
| Recipient selection | Not specified | Subscription eligibility |
| Publisher behavior | Not specified | Addresses logical destination |
| Multiple destinations | Defines the branching | Depends on matching subscriptions |