"The single biggest problem with communication is the illusion that it has taken place."
- George Bernard Shaw
Microservices address a single bounded context and are deployed independently on one or more physical machines that are distributed across a network. Although they are deployed in isolation, they need to interact with each other to accomplish application-level tasks that may cut across multiple bounded contexts. The choice of communication medium and method has a great impact on the performance and durability of the entire microservice-based architecture. Events are one of the methods of asynchronous communication among microservices to exchange data of interest. Part-1 of the book explains the importance of the observer model and how a message broker (https://en.wikipedia.org/wiki/Message_broker) helps in sending and receiving events in a microservices architecture. In this chapter, you will:
- Learn about event-driven patterns for...