Skip to content

Conversation

@agawanea
Copy link
Contributor

@agawanea agawanea commented Dec 3, 2025

Issue #, if available:

This pattern demonstrates a multi-step order processing workflow using AWS Lambda Durable Functions with automatic checkpointing and state persistence.

Features:

  • Multi-step workflow (validate, payment, inventory, shipping)
  • Automatic checkpointing at each step
  • Failure recovery and resume from last checkpoint
  • API Gateway integration for order management
  • DynamoDB for state persistence
  • Comprehensive testing instructions

Services: API Gateway, Lambda (Durable), DynamoDB
Region: us-east-2 (Ohio)
Framework: SAM
Language: Node.js 22.x

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

This pattern demonstrates a multi-step order processing workflow using AWS Lambda Durable Functions with automatic checkpointing and state persistence.

Features:
- Multi-step workflow (validate, payment, inventory, shipping)
- Automatic checkpointing at each step
- Failure recovery and resume from last checkpoint
- API Gateway integration for order management
- DynamoDB for state persistence
- Comprehensive testing instructions

Services: API Gateway, Lambda (Durable), DynamoDB
Region: us-east-2 (Ohio)
Framework: SAM
Language: Node.js 22.x
…able functions

- Add comprehensive order processing workflow across 5 phases (Validation, Risk Assessment, Invoice, Fulfillment, Shipping)
- Implement dual-function architecture: async durable function for order creation, sync function for status queries
- Add long-running waits (5min warehouse + 3min pickup) with zero compute cost during waits
- Include conditional credit check for high-value orders (>)
- Add automatic checkpointing for workflow resilience
- Implement deterministic order ID generation for API Gateway integration
- Add comprehensive error handling and validation
- Include test data with multiple order scenarios
- Update architecture diagram and documentation
- Remove deprecated initiator.js in favor of integrated approach
Copy link
Contributor

@ellisms ellisms left a comment

Choose a reason for hiding this comment

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

Hi @agawanea - thanks for the submission. Requesting a few minor changes.

@agawanea agawanea requested a review from ellisms December 5, 2025 18:36
@ellisms
Copy link
Contributor

ellisms commented Dec 5, 2025

Thanks @agawanea. I will add this to the publishing queue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants