-
Notifications
You must be signed in to change notification settings - Fork 1k
New serverless pattern - lambda-durable-functions-rest-api-python #2924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
New serverless pattern - lambda-durable-functions-rest-api-python #2924
Conversation
| @@ -0,0 +1,83 @@ | |||
| """ | |||
| Lambda Durable Function - Calls REST API using AWS Durable Execution SDK | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
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:** |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" | ||
| ``` | ||
|
|
||
| ---- |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
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.