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:
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,...