News for hackers. Stuff that matters.

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)?
( 9 comments | 13 points | on HN )
Re:Ask HN: Are you using AWS Lambda in production? by eraad on Saturday October 13, 2018 @05:31PM (#18210129)
Yes, we use several Lambda for different kinds of backend and user-facing services. We pay $60 to process ~1M requests per month.

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.

Re:Ask HN: Are you using AWS Lambda in production? by IpV8 on Monday October 15, 2018 @09:13AM (#18219368)
I've used serverless to deploy, works super well. I'd like to try out SAM and see how it compares.
Re:Ask HN: Are you using AWS Lambda in production? by FahadUddin92 on Saturday October 13, 2018 @10:18AM (#18208049)
I am using AWS Lambda. I use it in our team to create a notification flow to OpsGenie etc. Its been an amazing service so far.
Re:Ask HN: Are you using AWS Lambda in production? by bni on Saturday October 13, 2018 @01:52PM (#18209136)
Yes, I have built backend services for several e-commerce websites with it, it generally works great.
Re:Ask HN: Are you using AWS Lambda in production? by murukesh_s on Saturday October 13, 2018 @09:28PM (#18210894)
You meant the entire backend? that's interesting. So you just used lambda as an app server? Will the cold start bother you?
Re:Ask HN: Are you using AWS Lambda in production? by fuball63 on Saturday October 13, 2018 @11:22AM (#18208368)
I’m also interested in OPs questions, and additionally would like to hear how many are using Lambda with the API Gateway, and how big of a pain point is cold start.
Re:Ask HN: Are you using AWS Lambda in production? by e1g on Saturday October 13, 2018 @02:18PM (#18209255)
I use API Gateway to provide an API endpoint powered by Lambda (and deployed via Serverless). It took a few hours to understand the relationships between Gateway and Lambda, the wire a custom domain names with HTTPS, but ones you understand its operating model it runs very well.

'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.

Re:Ask HN: Are you using AWS Lambda in production? by catchmeifyoucan on Sunday October 14, 2018 @09:59PM (#18216896)
I don't think it's too bad, about ~1s for a cold start. But let's say you serve your login page with Lambda, every request thereafter could be much faster because your function is no longer cold. 1 slow request, but chances are your user is making more than one, or usually it's a fire and forget like a form submission.

https://hackernoon.com/im-afraid-you-re-thinking-about-aws-l...

Re:Ask HN: Are you using AWS Lambda in production? by e1g on Monday October 15, 2018 @03:57AM (#18218112)
Good article! It reflect my experience, but explains the tradeoffs and techniques very well.