[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-lambda-durable-eventbridge-cron-nodejs-sam":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":34,"resources":58,"s3URL":6,"services":6,"stem":69,"testing":70,"videoId":6,"__hash__":73},"patterns\u002Fpatterns\u002Flambda-durable-eventbridge-cron-nodejs-sam.json","Amazon EventBridge Cron to AWS Lambda durable function",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fanusha-ganapuram.json",{"text":13},[14,15],"sam build","sam deploy --guided","Create an AWS Lambda durable function triggered by Amazon EventBridge on a cron schedule using AWS SAM.","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-eventbridge-cron-nodejs-sam","serverless-patterns\u002Flambda-durable-eventbridge-cron-nodejs-sam","lambda-durable-eventbridge-cron-nodejs-sam","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This sample project demonstrates how to create a Lambda durable function that is triggered by Amazon EventBridge on a cron schedule. The Lambda function uses the AWS durable execution SDK to implement a multi-step workflow with automatic checkpointing and replay capabilities.","The durable execution pattern allows Lambda functions to span multiple invocations while maintaining state. When the function calls context.wait(), it suspends execution and creates a checkpoint. A subsequent invocation resumes from the checkpoint without re-executing previous steps.","This pattern deploys a Lambda durable function with Node.js 24 runtime, an Amazon EventBridge rule with cron schedule, and uses function versioning to ensure the cron trigger targets a published version rather than $LATEST.","Node.js","200",{},{"icon1":35,"icon2":40,"icon3":44,"icon4":48,"line1":51,"line2":54,"line3":56},{"x":36,"y":37,"service":38,"label":39},15,50,"eventbridge","Amazon EventBridge",{"x":41,"y":37,"service":42,"label":43},47,"lambda","AWS Lambda durable function",{"x":45,"y":46,"service":42,"label":47},85,20,"DataProcessor function",{"x":45,"y":49,"service":42,"label":50},70,"NotificationSvcs function",{"from":52,"to":53},"icon1","icon2",{"from":53,"to":55},"icon3",{"from":53,"to":57},"icon4",{"bullets":59},[60,63,66],{"text":61,"link":62},"AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":64,"link":65},"Invoking AWS Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-invoking.html",{"text":67,"link":68},"AWS durable execution SDK for Node.js","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-js","patterns\u002Flambda-durable-eventbridge-cron-nodejs-sam",{"text":71},[72],"See the GitHub repo for detailed testing instructions.","cgcNng-XFJFrCMqELdRSA8l2SBaOIfDd_fRUxBOcLk0",1782124508316]