Now we know that the main goal of creating microservices is to provide a single business context that is independent of other contexts. Although these services can be deployed in isolation, they need to communicate with each other. In this section, we will look at event-driven communication and the concept of CQRS.
Communication between services
Event-driven communication
The key concept in event-driven communication is an event. We can define an event as the outcome of the action taken by a microservice. When an event happens, some other part of the microservice architecture should react. The question is, what part should react? Stay tuned for the answer.
The following diagram will help us to understand event-driven communication...