Challenges of the proposed microservice architecture with NATS
In the previous chapters, we went through practical examples of implementing microservices with their scope and data while sharing information in a secured manner through the NATS messaging technology. In this section, we are going to discuss some of the areas that we need to pay extra attention to when building applications with the proposed architecture.
Message delivery guarantees and error handling
NATS is designed to offer simplicity and performance to users. These design principles can sometimes make things challenging for certain applications. The NATS core technology offers an at- most -once message delivery guarantee. In this mode, a message is delivered to a subscriber no more than one time. So, there is a possibility of message loss here. This mode of operation is suited for many practical applications, including the scenarios mentioned here:
- Applications that use a request-reply-based communication...