New serverless pattern - lambda-durable-execution-java-cdk#3074
Open
NithinChandranR-AWS wants to merge 2 commits intoaws-samples:mainfrom
Open
Conversation
… Java SDK pattern Deploy a resilient multi-step order processing workflow using the AWS Lambda Durable Execution SDK for Java (v1.0.1) with automatic checkpointing and failure recovery. Key features: - DurableHandler<Map, Map> base class with DurableContext - 5-step workflow: validate, reserve, pay, wait, ship - ctx.step() for checkpointed operations - ctx.wait() for zero-compute-cost suspension - Docker-based Java 17 Lambda with Maven build - CDK TypeScript infrastructure with DurableConfig escape hatch
Replace inline durable execution policy (wildcard resources) with the AWS managed policy for least-privilege IAM, matching the approach recommended in PR aws-samples#3053 review feedback.
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.
New Serverless Pattern: Lambda Durable Execution with Java SDK
Description
Deploys a Lambda durable function written in Java that orchestrates a multi-step order processing workflow with automatic checkpointing and failure recovery using the Durable Execution SDK for Java (v1.0.1, GA April 2026).
Architecture
Key Features
DurableHandler<Map, Map>base class withDurableContextctx.step()for checkpointed operations,ctx.wait()for zero-cost suspensionDurableConfigescape hatchFramework / Language
Deployment & Testing
Files
lib/lambda-durable-execution-java-stack.tssrc/main/java/com/example/OrderProcessor.javasrc/pom.xmlsrc/Dockerfileexample-pattern.json