[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"pattern-lambda-durable-order-processing-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":36,"level":37,"meta":38,"patternArch":39,"resources":57,"s3URL":6,"services":6,"stem":68,"testing":69,"videoId":6,"__hash__":72},"patterns\u002Fpatterns\u002Flambda-durable-order-processing-sam.json","Order Processing with AWS Lambda durable functions",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete --region us-east-2\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fabhishek-agawane.json",{"text":13},[14,15,16,17],"Note: Lambda durable functions are currently available in us-east-2 (Ohio) region only.","cd src && npm install && cd ..","sam build","sam deploy --guided --region us-east-2","Order processing workflow using Lambda durable functions with automatic checkpointing, long-running waits, and state persistence","json","AWS SAM",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-durable-order-processing-sam","serverless-patterns\u002Flambda-durable-order-processing-sam","lambda-durable-order-processing-sam","template.yaml",{"headline":28,"text":29},"How it works",[30,31,32,33,34,35],"This pattern demonstrates an order processing workflow using Lambda durable functions.","The workflow includes validation, payment processing, fraud checks, credit checks (for high-value orders), inventory management, and shipping coordination.","Durable execution enables long-running waits (5 minutes for warehouse processing, 3 minutes for carrier pickup) without consuming compute resources.","Each step is automatically checkpointed, allowing the workflow to survive interruptions and resume from the last successful step.","The pattern uses a dual-function architecture: async durable function for order processing and sync non-durable function for real-time status queries.","Order state is persisted in Amazon DynamoDB with real-time status updates throughout the 17-step workflow.","Node.js","300",{},{"icon1":40,"icon2":45,"line1":48,"icon3":51,"line2":55},{"x":41,"y":42,"service":43,"label":44},20,50,"apigw","API Gateway REST API",{"x":42,"y":42,"service":46,"label":47},"lambda","AWS Lambda",{"from":49,"to":50},"icon1","icon2",{"x":52,"y":42,"service":53,"label":54},80,"dynamodb","Amazon DynamoDB",{"from":50,"to":56},"icon3",{"bullets":58},[59,62,65],{"text":60,"link":61},"Lambda durable functions Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":63,"link":64},"Durable Execution SDK for JavaScript","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js",{"text":66,"link":67},"AWS Blog: Build multi-step applications with AWS Lambda durable functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fbuild-multi-step-applications-and-ai-workflows-with-aws-lambda-durable-functions\u002F","patterns\u002Flambda-durable-order-processing-sam",{"text":70},[71],"See the GitHub repo for detailed testing instructions.","usDA62zyat_7yY6WS2FJRG_GcS2V1k_J-0hvBY9PLc0",1778846886023]