1 Answer
- Newest
- Most votes
- Most comments
1
Auth Lambda is invoked before rate limiting. Could it be that you disabled the cache for the auth response from Lambda? Maybe you are using a header as the input for the auth Lambda that has different values in each invocation?
Relevant content
asked 8 years ago
asked 10 months ago

Thanks...I was thinking Auth was after Rate Limit, but makes sense to save AWS resources to Rate Limit validated requests. Given that, and we cache creds for 1 minute, I think they are hitting us hard right when cache is cleared and we're re-authing on new requests (which are also beyond rate limit). I'll dig around API Gateway to see if they are getting rate limited after we cache re-auth. I expect they are getting 429s at that point (after first 10 reqs). And, likely getting 429s before the cache cleared given the heavy load they are sending. Thanks again.