[{"data":1,"prerenderedAt":87},["ShallowReactive",2],{"pattern-lambda-durable-parallel-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":68,"s3URL":6,"services":6,"stem":82,"testing":83,"videoId":6,"__hash__":86},"patterns\u002Fpatterns\u002Flambda-durable-parallel-processing-sam.json","Parallel Processing with AWS Lambda durable functions",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsasidharan-ramasamy.json",{"text":13},[14,15,16,17],"Note: Lambda durable functions are available in multiple AWS regions.","cd src\u002Forchestrator && npm install && cd ..\u002F..","sam build","sam deploy --guided","Parallel order processing using Lambda durable functions with concurrent inventory, payment, shipping, and tax validation","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-parallel-processing-sam","serverless-patterns\u002Flambda-durable-parallel-processing-sam","lambda-durable-parallel-processing-sam","template.yaml",{"headline":28,"text":29},"How it works",[30,31,32,33,34,35],"This pattern demonstrates parallel processing using Lambda durable functions to execute multiple independent operations concurrently.","The workflow validates orders by running four worker functions in parallel: inventory check, payment validation, shipping calculation, and tax calculation.","Parallel execution reduces total processing time from ~575ms (sequential) to ~200ms (parallel), achieving a 2.9x speedup.","Each parallel task is automatically checkpointed, allowing the workflow to survive interruptions and resume from the last successful step.","The pattern uses a five-function architecture: one durable orchestrator and four non-durable worker functions.","All validation results are aggregated and validated before calculating final order totals and confirming the order.","Node.js","300",{},{"icon1":40,"icon2":45,"icon3":49,"icon4":53,"icon5":56,"line1":59,"line2":62,"line3":64,"line4":66},{"x":41,"y":42,"service":43,"label":44},15,45,"lambda","Durable function",{"x":46,"y":47,"service":43,"label":48},35,20,"Inventory Check",{"x":50,"y":51,"service":43,"label":52},80,25,"Payment Validation",{"x":46,"y":54,"service":43,"label":55},70,"Shipping Calculation",{"x":50,"y":57,"service":43,"label":58},65,"Tax Calculation",{"from":60,"to":61},"icon1","icon2",{"from":60,"to":63},"icon3",{"from":60,"to":65},"icon4",{"from":60,"to":67},"icon5",{"bullets":69},[70,73,76,79],{"text":71,"link":72},"Lambda durable functions Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":74,"link":75},"Durable Execution SDK for JavaScript","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js",{"text":77,"link":78},"Durable Functions Examples and Use Cases","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-examples.html",{"text":80,"link":81},"AWS Blog: Build multi-step applications with 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-parallel-processing-sam",{"text":84},[85],"See the GitHub repo for detailed testing instructions.","VYb_F7rh1n6D9-4EgsdDeqd2lV0QiuPMVaTumZ-n-ro",1781519742677]