Skip to content

New Serverless pattern - lambda-durable-eventbridge-cron-nodejs-sam#2943

Open
anusha-amz wants to merge 1 commit intoaws-samples:mainfrom
anusha-amz:agganapu-feature-durable-lambda-eventbridge-cron-nodejs-sam
Open

New Serverless pattern - lambda-durable-eventbridge-cron-nodejs-sam#2943
anusha-amz wants to merge 1 commit intoaws-samples:mainfrom
anusha-amz:agganapu-feature-durable-lambda-eventbridge-cron-nodejs-sam

Conversation

@anusha-amz
Copy link

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bfreiberg bfreiberg added the durable functions Pattern for AWS Lambda durable functions label Feb 19, 2026
@bfreiberg
Copy link
Contributor

Please make sure to use the correct capitalization: It's Lambda durable functions not Lambda Durable Functions

@biswanathmukherjee
Copy link
Contributor

Fix all places that mentions: Durable Lambda Function
Please see the official service name: https://aws.amazon.com/lambda/lambda-durable-functions/

{
"title": "EventBridge Cron to durable Lambda function",
"description": "Create a durable Lambda function triggered by EventBridge on a cron schedule using AWS SAM.",
"language": "Nodejs",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node.js


This pattern demonstrates how to trigger a durable Lambda function using EventBridge on a cron schedule. The Lambda function uses the AWS durable execution SDK to implement a multi-step workflow with checkpointing and automatic replay capabilities.

Learn more about this pattern at Serverless Land Patterns: https://serverlessland.com/patterns/lambda-durable-eventbrdige-cron-nodejs-sam
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in the URL: eventbrdige instead of eventbridge.


This pattern creates:

1. **Durable Orchestrator Lambda Function**: A Nodejs 24.x Lambda function that uses the AWS durable execution SDK to implement a multi-step workflow (invoking 2 Lmabda functions) with automatic checkpointing and replay capabilities.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: Lmabda --> Lambda

@@ -0,0 +1,98 @@
# EventBridge Cron to Durable Lambda Function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazon EventBridge corn to AWS Lambda durable function

@@ -0,0 +1,63 @@
{
"title": "EventBridge Cron to durable Lambda function",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazon EventBridge corn to AWS Lambda durable function

@@ -0,0 +1,63 @@
{
"title": "EventBridge Cron to durable Lambda function",
"description": "Create a durable Lambda function triggered by EventBridge on a cron schedule using AWS SAM.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not durable Lambda function. It is Lambda durable function

})
});

const response = await lambdaClient.send(command);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try replacing lambdaClient.send(new InvokeCommand(...)) with context.invoke() for automatic checkpointing and replay-safe Lambda invocations?

})
});

const response = await lambdaClient.send(command);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try replacing lambdaClient.send(new InvokeCommand(...)) with context.invoke() for automatic checkpointing and replay-safe Lambda invocations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

durable functions Pattern for AWS Lambda durable functions requested-changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants