Interview Prep/AWS/Serverless & Messaging (Step Functions, EventBridge, SQS, SNS)

What is the saga pattern and how does Step Functions help?

IntermediateConceptServerless & Messaging (Step Functions, EventBridge, SQS, SNS)
Answer

A saga is a sequence of local transactions across services where each step has a compensating action to undo it if a later step fails, such as releasing reserved inventory if payment fails. Step Functions models the forward steps and uses Catch paths to run the compensations in order.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Serverless & Messaging (Step Functions, EventBridge, SQS, SNS)