New serverless pattern - lambda-durable-functions-rest-api-python#2924
New serverless pattern - lambda-durable-functions-rest-api-python#2924tolutheo wants to merge 1 commit intoaws-samples:mainfrom
Conversation
| @@ -0,0 +1,83 @@ | |||
| """ | |||
| Lambda Durable Function - Calls REST API using AWS Durable Execution SDK | |||
There was a problem hiding this comment.
| 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", | |||
There was a problem hiding this comment.
| "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.", | |||
There was a problem hiding this comment.
| "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.", |
There was a problem hiding this comment.
| "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", |
There was a problem hiding this comment.
| "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: |
There was a problem hiding this comment.
| 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: |
There was a problem hiding this comment.
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:** |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Please make sure to consistently 1/ use the correct service name and 2/ capitalization
There was a problem hiding this comment.
Always use the correct service name prefix on the first mention
| aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'<your-stack-name>')].StackStatus" | ||
| ``` | ||
|
|
||
| ---- |
There was a problem hiding this comment.
Copyright footer is missing
| - x86_64 | ||
| Environment: | ||
| Variables: | ||
| API_URL: https://jsonplaceholder.typicode.com/posts/1 |
There was a problem hiding this comment.
What is the purpose of this URL?
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.