Closed njbmartin closed 3 years ago
This might be an upstream issue, so I'm raising with AWS Support
Spent a good hour speaking with AWS Support who walked me through some debugging and potential causes for the slow "cold start". It had nothing to do with the lambda instance, but the code. Will create another issue for this as it doesn't seem right that it takes a few seconds to initialise aws.sdk.DynamoDB.DocumentClient();
Creating
ProvisionedConcurrencyConfig
for API Gateway does not work as expected. Followed this blog: https://www.pulumi.com/blog/aws-lambda-provisioned-concurrency-no-cold-starts/Granted, it's for pure lamba functions, but would expect this to work the same?
After 5 minutes of inactivity on the endpoint, it takes at least 5s to warm up, once warm, requests take milliseconds as expected. It never stays warm though.
Expected behavior
The endpoint should always be warm and take ms to respond.
Current behavior
After a period of inactivity on the endpoint, the endpoint takes 5s+ to warm up again.
Steps to reproduce
Context (Environment)
Affected feature