Saga Pattern implementation with NoCode | UNQORK
What is a Saga Pattern? As discussed in AWS documentation here , "... is a failure management pattern that helps establish consistency in distributed applications, and coordinates transactions between multiple microservices to maintain data consistency. A microservice publishes an event for every transaction, and the next transaction is initiated based on the event's outcome. It can take two different paths, depending on the success or failure of the transactions. " We will take a look at the serverless Saga Pattern as defined in AWS Step Functions implementation guide, example here . This is how to implement using AWS Step Functions: Here we see that each step has two possible next step, success or failure. For example, if Flight Reservation is successful, then process moves to Car Reservation and if unsuccessful, then Cancel Flight Reservation. The process will look something like the below diagram in UNQORK: