Chapter 7. Routing and Filtering
There are times when you need to decide whether destinations should receive data depending upon the information in the message, or invoke different endpoints depending upon the content. In terms of integration patterns, these are described as filtering and routing, respectively. In this chapter, we are going to look at ICS capabilities outside the orchestration pattern.
To illustrate routing and filtering we are going to build on an idea first seen in Chapter 3, Distribute Messages Using the Pub-Sub Model, where we received a flight status update and then distributed it onward. As part of a publish and subscribe model, you assume everyone subscribing wants to know about every event. For this chapter, we are going to take the idea of receiving the status updates, but filter out updates based on the update type, so our mock consumer will only get position reports, not events representing departures and arrivals. Having established the ability to implement...