A saga is a sequence of local transactions where each transaction updates data within a single service. The first transaction is initiated by an external request corresponding to the system operation, and then each subsequent step is triggered by the completion of the previous one.
Saga is the Microservices architectural to handle/implement transactions that spans multiple sevices. In otherwords Saga is the maneging failure of transaction spans mutiple microservices.
Example, on a Travel packages website implemented in Microservices Architecture, the main transaction is to place the order, where as to complete tgis main transaction it has to go through Booking Hotel, Booking Air Ticket microservices. So if Air ticket booking transactions fails then the Hotel booking transaction should also gets failed. And we can write code depending on the business requirement how to handle this transaction failure situation, whether to reattempt entire transaction from begining or to wait and try Ait ticket transaction again.
SudipSikdar
A saga is a sequence of local transactions where each transaction updates data within a single service. The first transaction is initiated by an external request corresponding to the system operation, and then each subsequent step is triggered by the completion of the previous one.
Pankaj
Saga is the Microservices architectural to handle/implement transactions that spans multiple sevices. In otherwords Saga is the maneging failure of transaction spans mutiple microservices.
Example, on a Travel packages website implemented in Microservices Architecture, the main transaction is to place the order, where as to complete tgis main transaction it has to go through Booking Hotel, Booking Air Ticket microservices. So if Air ticket booking transactions fails then the Hotel booking transaction should also gets failed. And we can write code depending on the business requirement how to handle this transaction failure situation, whether to reattempt entire transaction from begining or to wait and try Ait ticket transaction again.