The Saga Pattern is a design pattern that provides a solution for implementing distributed transactions in the form of sagas that span across two or more microservices. A saga can be defined as a sequence of local transactions. Where each participating microservice executes one or more local transactions and then publishes an event that is used to trigger the next transaction in a saga that resides in another participating microservice. When one of the transactions in the sequence fails, the saga executes a series of compensating transactions to undo the changes that were made by the preceding transactions.
#saga #sagapattern
#microservices #softwareengineer #softwaredevelopment #softwarearchitecture #designprinciples
Learn more in our microservices fundamentals course: https://www.udemy.com/course/introduc...