Open godd9170 opened 8 years ago
This is a product of a phenomenon known as the 'Cold Start' https://forums.aws.amazon.com/thread.jspa?threadID=181348
It's the result of the function code residing outside of the cache until it's run.
So, like it or not, Serverless actually lets you set the timeout in the .yml
functions:
event:
timeout: 15
handler: handler.event
events:
- http:
method: post
path: event
events:
handler: handler.events
maybe we'll just do this?
It seems like the first time I try and hit an endpoint after its been recently deployed it will sometimes timeout and return:
I don't know if this is my fault, expected Lambda behaviour or what's happening, but it needs to be addressed.