How can a microservice architecture with NATS be improved?
At the beginning of this chapter, we discussed the challenges that are inevitable when designing microservice-based applications with NATS. Then, we discussed some of the new developments happening in the microservice architecture domain and the NATS server technology. In this section, we are going to discuss how we can improve the proposed microservice architecture with NATS using some of these new developments.
Using JetStream for improved message guarantees and stream processing
While designing the OPD application in Chapter 6, A Practical Example of Microservices with NATS, we had not considered the possibility of losing messages due to the unavailability of one of the services. But in the real world, when designing an application for a domain such as healthcare, we need to pay extra attention to the message delivery guarantees. This will ensure that all the major events that we share across services such as patient...