I’m currently developing a serverless app using the AWS Serverless
framework (NodeJS 18.x + Typescript). The front-end is built with ReactJS
(using axios).
I have a page on the front-end that executes more API requests than the others (about 50 requests at the same time). Some of these APIs return an Internal Server Error
with status 500, and it happens randomly. Sometimes it occurs with the GET /companies
API, and other times with GET /countries
. Something like that.
I checked the logs and found that these APIs didn’t execute the Lambda function, although they did execute through API Gateway (as seen in the API Gateway logs). If I reduce the number of requests for this page, the issue disappears.
I wonder if there is any limitation on the number of requests to prevent too many requests? My confusion is that these requests are handled by different Lambda functions, and the number of requests doesn’t seem excessively high.
Could you please provide some advice on this?
Many thanks.