Book Image

Applied Architecture Patterns on the Microsoft Platform (Second Edition)

Book Image

Applied Architecture Patterns on the Microsoft Platform (Second Edition)

Overview of this book

Table of Contents (20 chapters)
Applied Architecture Patterns on the Microsoft Platform Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

The message broker pattern


In the request-response example, we have built a WCF service that acts as a hub in the hub-and-spoke architecture, which connects different integration participants. The workflow we presented is quite simplistic; the only action it performs is aggregating the results of requests that are sent to providers.

In a more sophisticated solution, more actions can be required. The most typical ones are message validation, message transformation, and message routing (they are explained in the following list). Message hubs that perform these actions are called message brokers.

  • Message validation: This is performed using a set of validation rules. Placing message validation in the middle tier enables having a centralized set of rules that are consistent across the entire system. Message validation can be centralized as a service called by other processes in the message broker.

  • Message transformation: This is one of the most essential functions of the message broker, since...