Then answer to continue working with AWS Lambda / API Gateway?

I currently have a web hook that calls the AWS API Gateway -> AWS Lambda proxy. I would like to make the web hook more responsive and return an early response while continuing processing in Lambda.

I went ahead and made this early response from Lambda (Node v6.10), but it didn't seem to improve responsiveness. Is the API gateway somehow waiting for Lambda to complete, even though it already has a response from the callback?

Another idea is to post an SNS notification from Lambda and listen to the second Lambda and continue processing, but would rather avoid this complication if there is an easier way.

+4
source share
1

API- (aka InvocationType: RequestResponse) Lambda, , Lambda.

, SNS AWS, โ€‹โ€‹ Kinesis, SQS .. Lambda. - InvocationType: 'Event', .

. : fooobar.com/questions/48851/...

+4

Source: https://habr.com/ru/post/1678040/


All Articles