This pattern is used in situations where sequential execution of steps may not always be possible. In some situations, the output of a filter may have to be passed to one of the several pipes based on the fulfillment of certain criteria or conditions. In such situations, message router patterns are used. The diagram depicting the message router pattern is as follows:
![](https://static.packt-cdn.com/products/9781787287495/graphics/assets/2f12d258-0441-477d-ad13-480b00b5e7e3.png)