Name

Pipes and Filters Pattern

Goal

To spread processing of a message across multiple consumers, allowing flexible workflow, distribution of processing, and easy reuse (Figure C-5).

Pipes and filters collaboration
Figure C-5. Pipes and filters collaboration

Participants

Sender

Sends the message.

Message

Contains the content.

Multiple message handlers

Examine and process the message.

Interactions

The sender transmits a message to the first message handler in the processing chain. The first handler in the chain examines the message and performs whatever processing is required. It then forwards the message to another handler for further processing. Each handler is required to determine the appropriate next destination.

Notes

For more on implementing flexible workflows, see the Service to Worker pattern.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset