Events
The previous chapter introduced events as a mechanism to signal that something noteworthy happened. Events are important in an SOA platform, thus:
From a business point of view, events are a natural way to represent information. Businesses and their surrounding ecosystem of suppliers, partners, and clients cause and react with events continuously: a customer moving to a different address, a new purchase order, receiving an invoice from a supplier, sending a bill to a partner, and so on.
From a technical point of view, events improve the decoupling between software components. Software components are not required to know of each other’s existence any more.
An event contains a payload that provides information on the occurrence. The following code snippet shows the event payload that describes a new order that has just been received. This event is published by the Customer Web Portal and received by the service OrderService
for further processing.
<?xml version=”1.0”?> <order...