Example – order orchestration 

This example, as depicted in the following diagram, demonstrates mediating the interactions of multiple components using the Event Orchestration pattern. The components are assembled to implement a business process for ordering a product that must be reserved in advance, such as a ticket to a play or an airline reservation. The customer completes and submits the order, then the reservation must be confirmed, followed by charging the customer's credit card, and finally sending an email confirmation to the customer. This example builds on the example presented in the Event Collaboration pattern. The individual components are modified to be completely self-contained and a Mediator component is added to perform ...

Get Cloud Native Development Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.