Pattern description

Unlike the content-based routing scenario which targets a single destination system, this scenario calls for the broadcast of an event to a variable number of interested consumers. Similar to the content-based routing pattern where the publisher of a request does not know who is consuming the information, the publish/subscribe pattern relies on decoupling the sender from the receiver(s). In a publish/subscribe scenario, a set of subscribers asynchronously receive a message in parallel to each other and independently act upon it. This pattern is very successful if you need a very loosely coupled, scalable way to funnel data to multiple recipients.

Ideally, a message broker in a publish/subscribe solution can provide a robust ...

Get Applied Architecture Patterns on the Microsoft Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.