Enterprise Integration Patterns
Messaging Patterns
HOME PATTERNS RAMBLINGS ARTICLES TALKS DOWNLOAD BOOKS CONTACT
Messaging Patterns
Selective ConsumerSelective ConsumerMessaging Patterns » Messaging Endpoints

An application is using Messaging. It consumes Messages from a Message Channel, but it does not necessarily want to consume all of the messages on that channel, just some of them.

How can a message consumer select which messages it wishes to receive?

Make the consumer a Selective Consumer, one that filteres the messages delivered by its channel so that it only receives the ones that match its criteria.

There are three parts to this filtering process:

  1. Specifying Producer — Specifies the message’s selection value before sending it.
  2. Selection Value — One or more values specified in the message that allow a consumer to decide whether to select the message.
  3. Selective Consumer — Only receives messages that meet its selection criteria.

... Read the entire pattern in the book Enterprise Integration Patterns

Related patterns:

Competing Consumers, Content-Based Router, Correlation Identifier, Datatype Channel, Durable Subscriber, Event-Driven Consumer, Message Filter, Guaranteed Delivery, Invalid Message Channel, Message, Message Channel, Message Dispatcher, Message Expiration, Messaging, Point-to-Point Channel, Polling Consumer, Publish-Subscribe Channel, Request-Reply, Transactional Client


Creative Commons Attribution License

You can reuse the following elements under the Creative Commons Attribution license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.

Enterprise Integration Patterns book cover

Enterprise Integration Patterns
The classic, as relevant as ever. Over 90,000 copies sold.

Software Architect Elevator book cover

The Software Architect Elevator
Learn how architects can play a critical role in IT transformation by applying their technical, communication, and organizational skills.

Cloud Strategy book cover

Cloud Strategy
Fill the large gap between high-level goals and product details by understanding decision trade-offs.