AWS Lambda durable function invoking a Lambda Function

AWS Lambda durable function → AWS Lambda function

Lambda durable function invokes a standard Lambda function using context.invoke() with automatic checkpointing.

This pattern deploys an AWS Lambda durable function and a standard AWS Lambda function. The durable function uses the durable execution SDK to orchestrate a workflow that prepares input data in a checkpointed step and then invokes the standard Lambda function using context.invoke().
The context.invoke() call creates a checkpoint so that if the durable function is interrupted after the invoked function completes, it resumes with the stored result without re-invoking the processor function.
This pattern deploys two Lambda functions with the required IAM permissions for durable execution and cross-function invocation.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-durable-invoke-lambda-sam-python

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Sidharth Kothari

Cloud Engineer @AWS

Follow on LinkedIn