Chapter 3. Distribute Messages Using the Pub-Sub Model
In Chapter 1, Introducing the Concepts and Terminology when we looked at some of the broader integration concepts, we introduced the idea of publish and subscribe (or pub-sub for short) such as enabling a single event to be sent to multiple interested parties. In this chapter, we are going to bring the idea alive by creating an integration that represents a flight update being received and then sent onto one then multiple destinations (which could range from websites to other aviation-related systems). The services we are going to build don not directly map to what is offered by websites such as FlightAware. But we will talk about the steps to connect sites such as FlightAware to our integrations. We will also build on the ideas around pub-sub to explain some advanced design patterns.
In this chapter, we are going to make use of Mockable.io (often just referred to as Mockable); like Apiary it can be used to define and...