A microservice is a software architecture design pattern in which a single application is composed of many small, independent processes called "microservices" that communicate with each other using well-defined interfaces. Each microservice is responsible for a specific function and can be developed, tested, and deployed independently, making it easier to scale and maintain the overall application.
Recently, I've been contemplating increasingly on how to develop a SaaS product efficiently, aiming to bypass the typical project boilerplate that accompanies each new venture.
You're familiar with the
Microservices - concept is not new. Each service is self-contained and should implement a single business function (service isolation). This design principle is a differs from monolithic architecture, where all services of an app are tightly integrated and deployed as a single unit.
Micro services is a fun in itself. Here are tips when to use messaging over direct HTTP communication.
When to use HTTP:
* Need to message service directly
* Requires a confirmation about success or
But todays tip is about how to handle errors in NestJs microservice architecture. For an example lets use Redis as a proxy between other microservices instead of letting each microservice talk to each other.