Lets do it right..! Real Async Microservices | SAGA Microservice Pattern | example inside
Lets do it right..! Real Async Microservices | SAGA Microservice Pattern | example inside
You need a way to conduct transactions that transcend services since some business transactions cross numerous services.
Each business transaction that involves several services is a drama to implement. A series of local transactions make up a saga. Every local transaction in the saga modifies the database and broadcasts a message or event to start the subsequent local transaction. A sequence of compensatory transactions are carried out by the system in the event that a local transaction fails because it broke a business rule, undoing the modifications that the previous local transactions had done.