Skip to content

Conversation

@smyvens
Copy link

@smyvens smyvens commented Feb 5, 2026

Pattern: lambda-durable-function-chaining-cdk

This pattern demonstrates an e-commerce order processing workflow using AWS Lambda Durable Functions with function chaining, deployed via AWS CDK.

How it works

Processes orders through a 4-step workflow: validation → payment → inventory → fulfillment. The orchestrator function uses durable execution to checkpoint each step, so if something fails, it picks up where it left off instead of starting over.

The payment function fetches pricing from DynamoDB, inventory gets decremented when allocated, and if fulfillment fails, there's compensation logic to put the inventory back.

Architecture

  • 1 Durable Lambda function (orchestrator) with 1-hour execution timeout
  • 3 Regular Lambda functions (workers)
  • 1 DynamoDB table for product catalog
  • Asynchronous invocation pattern for long-running workflows

@bfreiberg bfreiberg added the durable functions Pattern for AWS Lambda durable functions label Feb 10, 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.

4 participants