bim360appstore-data.management-nodejs-transfer.storage
bim360appstore-data.management-nodejs-transfer.storage copied to clipboard
Handle "Too Many Requests" on postLambdaJob
As specified on the AWS API Gateway Throttling limit
https://www.npmjs.com/package/queue may help solve this
The storage services also have throttling that we have to take care of. They all provide different error codes and messages, but one thing is common, they all add a "Retry-After" header to the response with the number of seconds to wait before retrying the request. So I think that's what the lambda service should do: in case of error during transfer, look for that header value. If it's there then retry the call after the given amount of delay, if it's not there then just fail as it already does.