DEV Community

Mark Lopez
Mark Lopez

Posted on

Lambda API Gateways Are Dangerous

There is a 30 second timeout limit for AWS API Gateway.

Meaning, your code will stop running after 30s. If it is doing a longish calculation by that time, it will stop running immediately, without running any cleanup code.

Image description

This is really bad, especially since NextJS popularized running lambda APIs so they are becoming more common nowadays.

Top comments (0)