Skip to content

Added Java SDK support to the AWS Lambda durable functions skill#112

Open
smoell wants to merge 11 commits into
awslabs:mainfrom
smoell:main
Open

Added Java SDK support to the AWS Lambda durable functions skill#112
smoell wants to merge 11 commits into
awslabs:mainfrom
smoell:main

Conversation

@smoell
Copy link
Copy Markdown

@smoell smoell commented Apr 1, 2026

Add comprehensive Java examples to all reference documentation sections

Related

Ensures complete language coverage for the Lambda Durable Functions skill across TypeScript, Python, and
Java, enabling developers to use the skill regardless of their runtime preference.

Changes

Documentation Updates:

Added missing Python and Java examples to 17 sections across 4 reference files:

  • concurrent-operations.md (10 sections):

    • Tolerated Failures, Check Status, Get Results, Error Handling
    • Fixed Concurrency, Dynamic Concurrency
    • Map with Callbacks, Nested Map Operations, Map with Child Contexts
    • Performance Optimization (Batch Size Selection and Early Termination)
  • wait-operations.md (4 sections):

    • Custom Wait Strategy
    • Human Approval Workflow, Webhook Integration, Async Job Polling
  • advanced-patterns.md (2 sections):

    • AtMostOncePerRetry vs AtLeastOncePerRetry (Step Semantics)
    • Complex Object Graphs (Custom Serialization)
  • getting-started.md (1 section):

    • Saga Pattern (Compensating Transactions)

Key Patterns Documented:

  • Python: MapConfig, CompletionConfig, WaitForConditionConfig, StepSemantics, custom SerDes
    implementations
  • Java: Builder patterns for MapConfig, CompletionConfig, WaitForConditionConfig, WaitStrategies,
    custom SerDes<T> interface, DurableFuture async operations

Acknowledgment

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

@smoell smoell requested review from a team as code owners April 1, 2026 15:25
Comment thread plugins/aws-serverless/skills/aws-lambda-durable-functions/SKILL.md Outdated
**Implementation approach:**

1. Use `waitForCallback` (TypeScript) or `wait_for_callback` (Python) with a timeout configuration set in the config argument
1. Use `waitForCallback` (TypeScript), `wait_for_callback` (Python), or `ctx.waitForCallback` (Java) with a timeout configuration set in the config argument
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why does the java reference include the ctx object while the others don't?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In the "API Reference Conventions" section I have "Java: Full reference with ctx prefix (e.g., ctx.waitForCallback) since Java uses ctx as the conventional variable name", so it's a documentation convention choice, not a functional difference. I can change that.

@smoell
Copy link
Copy Markdown
Author

smoell commented Apr 7, 2026

Fixed open issues

@github-actions
Copy link
Copy Markdown

This pull request is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions Bot added the stale label Apr 22, 2026
@github-actions
Copy link
Copy Markdown

Closing this pull request as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions Bot closed this Apr 25, 2026
@krokoko krokoko reopened this Apr 30, 2026
@github-actions github-actions Bot removed the stale label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants