News for hackers. Stuff that matters.
Re:A bank runs serverless with PHP and AWS Lambda by deleugpn on Wednesday November 01, 2023 @01:57PM (#38102175)
Then your EC2 instance suddenly stops working and your downtime cost you a fat contract that makes the cost of serverless a pocket change.

If you want to compare AWS Lambda with EC2, you need to bring in AWS Load Balancer, Auto Scaling, Security Upgrades for the OS, Healthcheck and many more.

Yes, Lambda is not needed in a lot of context, but if you have the expertise to use it and you want to provide enterprise-grade compliance, it's a walk in the park.

Re:A bank runs serverless with PHP and AWS Lambda by willsmith72 on Wednesday November 01, 2023 @02:14PM (#38102444)
Everything you listed is why I mentioned ECS though. To me it's a perfect in-between.

Bringing the long-lived server back also makes things like long-lived connections, memory caching, cold starts and database connections a non-issue again.

Re:A bank runs serverless with PHP and AWS Lambda by Sohcahtoa82 on Wednesday November 01, 2023 @02:19PM (#38102553)
Good points all around.

The costs certainly are not as cut-and-dry as I originally expressed it.

Re:A bank runs serverless with PHP and AWS Lambda by cebert on Wednesday November 01, 2023 @06:10PM (#38106033)
With Lambda you’re in three different Availability Zones by default, so you also need to factor running your proposed EC2 solution in 3 AZs too.