Communication requirements of a microservice architecture
The microservice architecture is a distributed system. The communication from and to these individual services plays a pivotal role in the overall design and implementation of the platform. Before discussing any particular messaging model for the microservice architecture, let's try to understand the communication requirements of a microservice architecture.
Let's start with the example use case we discussed in the previous chapter, where we started designing a solution for a hospital outward patient division (OPD) using the microservice architecture. Four major functional units operate within the OPD, and each of these functional units can operate independently while communicating with each other. In addition to the functional unit-based definitions of microservices, we also derived two additional microservices for authentication and data sharing, as depicted in the following diagram: