Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
1–10 of 140 posts
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#2Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#3This has been going on for years.
Would someone form AMZ please stand up?
I suggest that the latency is 5s for the 'first call', then, subsequent calls are fast - and if you don't use your lambda for a minute or so, it goes back to having latency.
I suggest maybe this has something to do with loading it into memory when it's used?
There must be a way to keep the lambdas 'hot' or else it will never really get used for anything but background tasks.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#4Can you achieve competitive latency for web pages using API Gateway and Lambda?
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#5Listen folks - it's still a fantasy. Latency is still 5s on many requests = no deal. This has been going on for years. Would someone form AMZ please stand up? I suggest that the latency is 5s for the 'first call', then, subsequent calls are fast - and if you don't use your lambda for a minute or so, it goes back to having latency. I suggest maybe this has something to do with loading it into memory when it's used? Th…
If that's what you need...you need a server.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#6Listen folks - it's still a fantasy. Latency is still 5s on many requests = no deal. This has been going on for years. Would someone form AMZ please stand up? I suggest that the latency is 5s for the 'first call', then, subsequent calls are fast - and if you don't use your lambda for a minute or so, it goes back to having latency. I suggest maybe this has something to do with loading it into memory when it's used? Th…
You're describing container re-use which is documented in the page here: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduct...
You could have cloud watch run the function every minute? Again, that won't guarantee that your function will be "hot". But it's a quick hack to potentially reduce the frequency of your slow initial start.
That said customer feedback is super helpful in making great services so I'll get this feedback to the lambda team (or they may see it here).
If you ever need any help my email is in my profile and I'm happy to work with you.
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#7Can you achieve competitive latency for web pages using API Gateway and Lambda?
Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#8Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda
#9Serving backend requests is easy with Lambda, but the code for managing the backend can get quite large, quickly. If you are loading up data and it's going to take more than 5 minutes to perform a task, you need to build a queueing system from AWS primitives.