Pattern: Content-Based Router
For example, large e-tailers like Amazon allow you to order anything from books to chain saws and clothing. Depending on the type of item, the order may be processed by a different "behind-the-scenes" merchant's order processing systems.
Use a Content-Based Router to route each message to the correct recipient based on message
content.
The Content-Based Router examines the message content and routes the message onto a different
channel based on data contained in the message. The routing can be based on a number of criteria
such as existence of fields, specific field values etc.Content-Based Router can take on the form of a configurable rules engine that computes the
destination channel based on a set of configurable rules.
No comments:
Post a Comment