New Serverless pattern - lambda-durable-function-chaining-sam#2928
Open
sbbhimji wants to merge 4 commits intoaws-samples:mainfrom
Open
New Serverless pattern - lambda-durable-function-chaining-sam#2928sbbhimji wants to merge 4 commits intoaws-samples:mainfrom
sbbhimji wants to merge 4 commits intoaws-samples:mainfrom
Conversation
bfreiberg
requested changes
Feb 7, 2026
| FunctionName: durable-orchestrator | ||
| CodeUri: src/orchestrator/ | ||
| Handler: app.lambda_handler | ||
| Timeout: 900 |
Contributor
There was a problem hiding this comment.
Is such a high timeout necessary?
Co-authored-by: Ben <9841563+bfreiberg@users.noreply.github.com>
bfreiberg
requested changes
Feb 9, 2026
Contributor
bfreiberg
left a comment
There was a problem hiding this comment.
Thank you, one more round and I think we are good to go
Co-authored-by: Ben <9841563+bfreiberg@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
#2929
Description of changes:
This pattern demonstrates the function chaining workflow pattern using AWS Lambda durable functions. A durable orchestrator function sequentially invokes three Lambda functions using context.invoke(), where each invocation automatically creates a checkpoint. The key benefit is fault tolerance: if the orchestrator fails mid-execution, it replays from the beginning but skips completed steps by loading results from checkpoints, ensuring no work is re-executed. This
pattern showcases how developers can build resilient, multi-step workflows directly in Python code without managing external state infrastructure, leveraging the new Lambda durable functions capability and the aws-durable-execution-sdk-python SDK. This also leverages SAM for the deployment of the durable function.