Ask HN: Are you using AWS Lambda in production?
I am building a new type of backend as a service solution and would like to weigh your opinion on existing server less solutions. Are you using AWS Lambda or Azure functions or other offerings in production? Are you using Lambda for your main backend or just for event driven support services like consolidating logs or resizing image files? How much is your average monthly spent on Serverless services? What are the main considerations for moving towards Serverless (Cost/Maintenance)?
10 comments
[ 24.3 ms ] story [ 67.8 ms ] thread'Cold starts' is a complicated topic. AWS will keep your Lambda 'hot' for ~5 minutes since the last invocation - you are not paying for the 5 minutes, but it still sits in their RAM waiting for requests. This means that any request within 5 minutes of the last request does not pay the cold-start price. So I used Pingdom to monitor/ping the endpoint every 5 minutes, thus keeping one instance of the function perpetually 'hot'. Note that this hack will not work if you need high concurrency: you can only keep 1 instance alive. In practice, it's enough for us as one instance can serve most of the traffic in our case.
https://hackernoon.com/im-afraid-you-re-thinking-about-aws-l...
Consider the following:
1. It's pretty useful for fast prototyping (lots of demos, codes, etc. available).
2. Write clean code. Develop your logic totally separate from Lambda, you should be able to test it without it. Use Lambda + API gateway basically as an app/web server.
3. Don't deploy Lambdas manually. Use AWS SAM.