Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Publish-Subscribe > Pattern description

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 quality of service to the subscribers. This typically means that the broker can notify subscribers in parallel (versus sequentially), perform in a store-and-forward fashion so that downstream unavailability does not result in lost messages, and filter out messages that are not of any interest to a particular subscriber.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint