[{"data":1,"prerenderedAt":52},["ShallowReactive",2],{"workflow-saga-pattern-tf":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":13,"description":17,"diagram":18,"extension":19,"framework":20,"gitHub":21,"introBox":30,"level":34,"meta":35,"resources":36,"s3URL":39,"services":40,"simplicity":43,"stem":44,"testing":45,"type":49,"usecase":50,"videoId":29,"__hash__":51},"workflows\u002Fworkflows\u002Fsaga-pattern-tf.json","Saga Pattern",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Frohan-mehta.json","content\u002Fcontributors\u002Ftabby-ward.json",{"text":14},[15,16],"terraform init","terraform apply","A failure management management pattern that coordinates transactions between multiple microservices to maintain data consistency.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fsaga-pattern-tf.png","json","Terraform",{"template":22,"payloads":27},{"repoURL":23,"templateDir":24,"templateFile":25,"ASL":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fsaga-pattern-tf\u002F","saga-pattern-tf","main.tf","statemachine\u002Fstatemachine.asl.json",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33],"The following workflow diagram illustrates the typical flow of the travel reservation system. The workflow consists of reserving air travel, reserving a car, processing payments, confirming flight reservations, and confirming car rentals followed by a success notification when these steps are complete. However, if the system encounters any errors in running any of these transactions, it starts to fail backward. For example, an error with payment processing triggers a refund, which then triggers a cancellation of the rental car and flight, which ends the entire transaction with a failure message.","200",{},{"headline":37,"bullets":38},"Additional resources",[],null,[41,42],"sns","batch","2 - Pattern","workflows\u002Fsaga-pattern-tf",{"headline":46,"text":47},"Testing",[48],"See the GitHub repo for detailed testing instructions.","Standard","Error Handling","X0EhpcntG564AE-rWWOomzre7ZjMGwCObzvlsd3lnpU",1779618908637]