[{"data":1,"prerenderedAt":78},["ShallowReactive",2],{"pattern-cdk-stepfunction-durable-lambda-function":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":28,"language":35,"level":36,"meta":37,"patternArch":38,"resources":56,"s3URL":6,"services":6,"stem":73,"testing":74,"videoId":6,"__hash__":77},"patterns\u002Fpatterns\u002Fcdk-stepfunction-durable-lambda-function.json","AWS Step Functions to AWS Lambda durable functions",null,{"text":8},[9],"cdk destroy",[11],"content\u002Fcontributors\u002Fakshay-singhal.json",{"text":13},[14,15,16,17,18],"python3 -m venv .venv","source .venv\u002Fbin\u002Factivate","python3 -m pip install -r requirements.txt","cdk synth","cdk deploy","Create a Step Functions workflow to invoke Lambda durable functions synchronously and asynchronously with checkpointing.","json","AWS CDK",{"template":23},{"repoURL":24,"templateURL":25,"projectFolder":26,"templateFile":27},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcdk-stepfunction-durable-lambda-function","serverless-patterns\u002Fcdk-stepfunction-durable-lambda-function","cdk-stepfunction-durable-lambda-function","cdk_stepfunction_durable_lambda_function\u002Fcdk_stepfunction_durable_lambda_function_stack.py",{"headline":29,"text":30},"How it works",[31,32,33,34],"This pattern demonstrates how to integrate AWS Lambda durable functions into an AWS Step Functions workflow.","It covers both synchronous invocation (using default Request Response pattern) and asynchronous invocation (using the Step Function Wait for Callback with Task Token integration pattern) of durable Lambda functions.","The pattern addresses the challenge of running long-running Lambda functions (beyond 15 minutes) within a Step Functions orchestration, using asynchronous invocation and durable checkpointing.","Lambda durable functions use a checkpoint\u002Freplay mechanism that allows Lambda executions to run for up to one year, automatically recovering from interruptions.","Python","200",{},{"icon1":39,"icon2":44,"icon3":48,"line1":50,"line2":54},{"x":40,"y":41,"service":42,"label":43},20,50,"sfn","AWS Step Functions",{"x":45,"y":40,"service":46,"label":47},70,"lambda","(1) AWS Lambda durable function (async)",{"x":45,"y":45,"service":46,"label":49},"(2) AWS Lambda durable function (sync)",{"from":51,"to":52,"label":53},"icon1","icon2","",{"from":51,"to":55,"label":53},"icon3",{"bullets":57},[58,61,64,67,70],{"text":59,"link":60},"AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":62,"link":63},"Invoking durable Lambda functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-invoking.html",{"text":65,"link":66},"Step Functions Integration Patterns","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html",{"text":68,"link":69},"Durable functions or Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-step-functions.html",{"text":71,"link":72},"Best practices for Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-best-practices.html","patterns\u002Fcdk-stepfunction-durable-lambda-function",{"text":75},[76],"See the GitHub repo for detailed testing instructions.","FHxIpDvFBzY1Y0AyMzA5KZbV8IyL6IMJjZvubi1Iebk",1782210915119]