Skip to content
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

API Gateway Async Lambda Invocation #822

Open
1 of 2 tasks
akshitkh opened this issue Mar 30, 2023 · 1 comment
Open
1 of 2 tasks

API Gateway Async Lambda Invocation #822

akshitkh opened this issue Mar 30, 2023 · 1 comment
Labels
feature-request A feature should be added or improved. language/typescript Related to Typescript examples needs-triage This issue or PR still needs to be triaged. p2

Comments

@akshitkh
Copy link
Contributor

Describe the feature

This feature allows users to build an API Gateway with an asynchronous Lambda integration, in addition to a DynamoDB integration. The POST method submits an async request to Lambda, and returns a jobID to the user.

The user can then use the GET method to query the jobStatus for that jobId. The GET method relies on direct DynamoDB integration with API Gateway.

Use Case

Giving users the ability to receive a jobId for an async invocation, thus allowing them to check the jobStatus for that jobId.

Proposed Solution

I am using API Gateway context to return a requestId upon a POST request. The Lambda function stores this requestId in the DynamoDB table.

The GET method queries the DynamoDB table for that requestId, and returns the value of the status attribute.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Language

Typescript

@akshitkh akshitkh added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Mar 30, 2023
@akshitkh
Copy link
Contributor Author

I have this working already. Happy to submit a pull request once the issue has been reviewed.

@kaiz-io kaiz-io added language/typescript Related to Typescript examples p2 labels Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. language/typescript Related to Typescript examples needs-triage This issue or PR still needs to be triaged. p2
Projects
None yet
Development

No branches or pull requests

2 participants