Skip to content

New serverless pattern - Step Function to durable Lambda function#2975

Open
sin-ak wants to merge 2 commits intoaws-samples:mainfrom
sin-ak:sinak-feature-stepfunction-durable-lambda-function
Open

New serverless pattern - Step Function to durable Lambda function#2975
sin-ak wants to merge 2 commits intoaws-samples:mainfrom
sin-ak:sinak-feature-stepfunction-durable-lambda-function

Conversation

@sin-ak
Copy link

@sin-ak sin-ak commented Feb 26, 2026

Issue #, if available: #2976

Description of changes:
This pattern demonstrates how to integrate AWS Lambda durable functions into an AWS Step Functions workflow. This pattern covers both the synchronous invocation (using default Request Response pattern) and asynchronous invocation (using the Step Function Wait for Callback with Task Token integration pattern) of the durable Lambda function. It addresses the challenge of running long-running Lambda functions (beyond 15 minutes) within a Step Functions orchestration, using asynchronous invocation and durable checkpointing.

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


## When to Use This Pattern
Use this pattern when:
- Your Lambda function execution time exceeds 15 minutes and must be orchestrated by Step Functions
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the 15min is not a differentiator for SFN vs DF - I think the reasons for combining both are 1/ existing SFN experience/workflows and 2/ simplifying Lambda orchestration logic e.g., reducing the number of functions, calls, and complexity when building hybrid workflows


Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS Pricing page](https://aws.amazon.com/pricing/) for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.

## When to Use This Pattern
Copy link
Contributor

Choose a reason for hiding this comment

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

note: I'm reading this section as "when to use this serverless pattern" but somehow the section seems to be more a DF vs SFN - consider streamlining this section to match the use case and refer to the user guide for more guidance

@bfreiberg bfreiberg added Patterns Guardian approved durable functions Pattern for AWS Lambda durable functions and removed Patterns Guardian approved labels Mar 2, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants