DEV Community

Discussion on: 4 tips for AWS Lambda optimization for production

Collapse
 
taavirehemagi profile image
Taavi Rehemägi

On another note, if you are concerned about costs of your backend API, not about the scalability, performance and reliability of your application.. There is really no cost advantage if you compare Lambda and Fargate - both are serverless options with rather similar cost structure.

But when it comes to deploying your API just to EC2, you really should consider the Total Costs of Ownership. Implementing Load balancer, monitoring and maintaining those servers will most likely cost much more than just relying on serverless. Hope this helps :)

Collapse
 
nilamo profile image
Alex Winfield

See? That really just emphasizes that I have no idea what the upgrade path is once you start to exceed Lambda's free tier lol. Maybe Beanstalk, so all those things are still handled for you?