Skip to content

Conversation

@tolutheo
Copy link

@tolutheo tolutheo commented Feb 5, 2026

Issue #, if available:

*Description of changes: Lambda durable function that calls a rest API

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

@@ -0,0 +1,83 @@
"""
Lambda Durable Function - Calls REST API using AWS Durable Execution SDK
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Lambda Durable Function - Calls REST API using AWS Durable Execution SDK
AWS Lambda durable function - Calls REST API using AWS durable execution SDK

@@ -0,0 +1,64 @@
{
"title": "Lambda Durable Function - REST API Call",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"title": "Lambda Durable Function - REST API Call",
"title": "AWS Lambda durable function - REST API Call",

@@ -0,0 +1,64 @@
{
"title": "Lambda Durable Function - REST API Call",
"description": "A Lambda function that calls an external REST API using AWS Durable Execution SDK for automatic retries and state management.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"description": "A Lambda function that calls an external REST API using AWS Durable Execution SDK for automatic retries and state management.",
"description": "A Lambda function that calls an external REST API using AWS durable execution SDK for automatic retries and state management.",

"introBox": {
"headline": "How it works",
"text": [
"This pattern demonstrates AWS Lambda Durable Execution for calling external REST APIs.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"This pattern demonstrates AWS Lambda Durable Execution for calling external REST APIs.",
"This pattern demonstrates AWS Lambda durable functions for calling external REST APIs.",

"resources": {
"bullets": [
{
"text": "AWS Lambda Durable Execution",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"text": "AWS Lambda Durable Execution",
"text": "AWS Lambda durable execution",


## How it works

This pattern demonstrates AWS Lambda Durable Execution for calling external REST APIs. It uses the AWS Durable Execution SDK to create a durable function that can:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This pattern demonstrates AWS Lambda Durable Execution for calling external REST APIs. It uses the AWS Durable Execution SDK to create a durable function that can:
This pattern demonstrates AWS Lambda durable functions for calling external REST APIs. It uses the AWS durable execution SDK to create a Lambda function that can:

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that there is something missing at the end


This pattern demonstrates AWS Lambda Durable Execution for calling external REST APIs. It uses the AWS Durable Execution SDK to create a durable function that can:

**AWS Durable Execution Features:**
Copy link
Contributor

Choose a reason for hiding this comment

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

This reads more like a product description. Focus on what this pattern does

1. `@durable_step` - Wraps the REST API call, making it automatically retryable
2. `@durable_execution` - Marks the Lambda handler as a durable execution workflow

AWS Lambda Durable Execution automatically handles failures, retries, and state persistence without requiring external services like DynamoDB or Step Functions.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make sure to consistently 1/ use the correct service name and 2/ capitalization

Copy link
Contributor

Choose a reason for hiding this comment

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

Always use the correct service name prefix on the first mention

aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'<your-stack-name>')].StackStatus"
```

----
Copy link
Contributor

Choose a reason for hiding this comment

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

Copyright footer is missing

- x86_64
Environment:
Variables:
API_URL: https://jsonplaceholder.typicode.com/posts/1
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this URL?

@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.

3 participants