The event-driven communication design pattern is based on initiating events such as a query or node request. This event initiates communication between multiple components. The communications between system components can be managed as messages.
To manage these messages, we implement a scheduler to listen to the initiating events and then process the necessary communication via handlers. As illustrated next, the scheduler plays a critical role in the overall communication management system, so care should be taken to make sure it catches exceptions and processes them appropriately:
![](https://static.packt-cdn.com/products/9781789809770/graphics/assets/271265de-a67b-489d-9441-6a3416544b5c.png)
The handlers illustrated in the preceding diagram represent a module of code that is generally short with respect to the amount of functionality that it provides. So,...