DEV Community

Discussion on: Full Backend Apps on AWS Lambda?

 
adamgordonbell profile image
Adam Gordon Bell

Scaling up would definitely be one use case. I was thinking about the opposite, scaling down. So a REST API service that is just a side project, I can have it sitting as a lamdba, and then it's idle 99% of the time and so I just pay pennes whenever its called.

So, side projects basically 🀷

Thread Thread
 
ben profile image
Ben Halpern

How does that work in practice? Is the first request after a while painfully slow due to cold boot up?

Thread Thread
 
adamgordonbell profile image
Adam Gordon Bell

yeah, because your app is just starting up. So it depends on how fast your app is to startup, Java is bad at this. I'm using go, and its like 100 ms to start up in lambda i think.

I found this: mikhail.io/serverless/coldstarts/a...

But yeah, I'm just playing around. Here is my lambda app:
earthly.dev/blog/aws-lambda-golang/

I'm not sure about the real world downsides outside of toy app land.