Skip to content
Discussion options

You must be logged in to vote

A single synchronous invocation can't send an early "still processing" and then keep working. With the Lambda proxy integration, the response is the handler's return value, and once the handler returns, the invocation is over. When API Gateway gives up at 29 s, it just returns a 504 to the client. The function keeps running until it finishes or hits its own timeout.

Idempotency lets you take advantage of that: retries of the same request can get a 202 while the first invocation is still running, then the cached result once it's done.

1. Return 202 to retries while the first invocation is running

When a second request arrives with the same payload before the first one has finished, Powerto…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Chaz6
Comment options

@Yuno15-bb
Comment options

Answer selected by Chaz6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants