[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-durable-functions-nodejs-saga-pattern":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":32,"level":33,"meta":34,"patternArch":36,"resources":41,"s3URL":6,"services":55,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-durable-functions-nodejs-saga-pattern.json","Saga pattern with AWS Lambda durable functions in Node.js",null,{"text":8},[9],"\u003Ccode>sam delete --stack-name saga-pattern-demo\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fsurya-sai-d.json",{"text":13},[14,15],"sam build","sam deploy --guided","Implement the Saga pattern for distributed transactions using AWS Lambda durable functions with automatic compensating transactions","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-durable-functions-nodejs-saga-pattern","serverless-patterns\u002Flambda-durable-functions-nodejs-saga-pattern","lambda-durable-functions-nodejs-saga-pattern","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30,31],"This pattern demonstrates the Saga pattern using AWS Lambda durable functions to coordinate distributed transactions across multiple services.","The orchestrator function executes a sequence of reservation steps (flight, hotel, car). Each step is checkpointed automatically using context.step().","If any step fails, compensating transactions execute in reverse order to rollback all completed operations, ensuring data consistency.","The durable function maintains execution state without requiring external storage like DynamoDB or Step Functions.","Node.js","200",{"patternType":35},"Serverless",{"icon1":37},{"x":38,"y":38,"service":39,"label":40},50,"lambda","Saga Orchestrator (Durable)",{"bullets":42},[43,46,49,52],{"text":44,"link":45},"AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":47,"link":48},"AWS Lambda Durable Execution SDK for JavaScript","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js",{"text":50,"link":51},"Saga Pattern","https:\u002F\u002Fmicroservices.io\u002Fpatterns\u002Fdata\u002Fsaga.html",{"text":53,"link":54},"Building Serverless Distributed Applications with Saga","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-a-serverless-distributed-application-using-a-saga-orchestration-pattern\u002F",{"from":56,"to":59},{"serviceName":57,"serviceURL":58},"AWS Lambda","\u002Flambda\u002F",{"serviceName":57,"serviceURL":58},"patterns\u002Flambda-durable-functions-nodejs-saga-pattern",{"text":62},[63],"See the README in the GitHub repo for detailed testing instructions.","b3I7HGI11bQirA00LYLftVxurehPraNz7XettBNksT0",1779273337080]