| Publish-Subscribe Channel |
Pattern Catalog | ||
| Site Home Patterns Home Table of Contents |
An application is using Messaging to announce events.
How can the sender broadcast an event to all interested receivers?

Send the event on a Publish-Subscribe Channel, which delivers a copy of a particular event to each receiver.
A Publish-Subscribe Channel works like this: It has one input channel that splits into multiple output channels, one for each subscriber. When an event is published into the channel, the Publish-Subscribe Channel delivers a copy of the message to each of the output channels. Each output channel has only one subscriber, which is only allowed to consume a message once. In this way, each subscriber only gets the message once and consumed copies disappear from their channels.
...Related patterns: Durable Subscriber, Event Message, Message, Message Channel, Message Store, Messaging, JMS Publish/Subscribe Example, Point-to-Point Channel, Request-Reply
|
Find the full description of this pattern in: Gregor Hohpe and Bobby Woolf ISBN 0321200683 650 pages Addison-Wesley |
| Parts of this page are available under the license. You can reuse the pattern icon, the pattern name, the problem and solution statements (in bold), and the sketch under this license. Other portions of the text, such as text chapters or the full pattern text, are protected by copyright. |
| Home Patterns Table of Contents |
| © 2003 Bobby Woolf All rights reserved. |