[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-lambda-durable-invoke-lambda-sam-python":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":31,"level":32,"meta":33,"patternArch":35,"resources":47,"s3URL":6,"services":6,"stem":58,"testing":59,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Flambda-durable-invoke-lambda-sam-python.json","AWS Lambda durable function invoking a Lambda Function",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsidharth-kothari.json",{"text":13},[14,15],"sam build","sam deploy --guided","Lambda durable function invokes a standard Lambda function using context.invoke() with automatic checkpointing.","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-invoke-lambda-sam-python","serverless-patterns\u002Flambda-durable-invoke-lambda-sam-python","lambda-durable-invoke-lambda-sam-python","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern deploys an AWS Lambda durable function and a standard AWS Lambda function. The durable function uses the durable execution SDK to orchestrate a workflow that prepares input data in a checkpointed step and then invokes the standard Lambda function using context.invoke().","The context.invoke() call creates a checkpoint so that if the durable function is interrupted after the invoked function completes, it resumes with the stored result without re-invoking the processor function.","This pattern deploys two Lambda functions with the required IAM permissions for durable execution and cross-function invocation.","Python","200",{"patternType":34},"Serverless",{"icon1":36,"icon2":41,"line1":44},{"x":37,"y":38,"service":39,"label":40},30,50,"lambda","AWS Lambda durable function",{"x":42,"y":38,"service":39,"label":43},80,"AWS Lambda function",{"from":45,"to":46},"icon1","icon2",{"bullets":48},[49,52,55],{"text":50,"link":51},"AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":53,"link":54},"Durable execution SDK for Python","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-python",{"text":56,"link":57},"Chained invocations across functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-examples.html","patterns\u002Flambda-durable-invoke-lambda-sam-python",{"text":60},[61],"See the GitHub repo for detailed testing instructions.","pkCpwgnh0hnKBcuDepxHczUjoPzrTXyKJ0YEfLxdiRw",1780742124437]