Understanding how NATS is positioned in the microservice architecture
In the preceding section, where we discussed the inner architecture of the microservice architecture, we discussed how to use a messaging platform for inter-service communication. This concept is depicted in Figure 5.1 as well. In this section, we are going to discuss how NATS fits into the role of this messaging platform and how it is going to help the microservice architecture with its capabilities. The following diagram depicts how NATS can be used in a microservice architecture as a messaging platform:
The preceding diagram depicts how NATS fits into the inner architecture of the microservice architecture and how it interacts with the other components. The following are the major interactions between the NATS server and the remainder of the microservice architecture:
- Microservices interact with the NATS server as NATS...