Yeah, I’ve managed both Lambda and EC2 in production environments, and I’d definitely echo what Tom said. Adding to that
“Why is Lambda considered more expensive than EC2 for serverless computing?”
It really comes down to scale. Lambda looks affordable at first glance, but once your usage increases, think frequent invocations or higher memory functions, you begin to realize just how fast those charges can grow. EC2 gives you a fixed hourly cost, which makes budgeting easier for services that are constantly running. Plus, EC2 allows optimization techniques like reserved instances and autoscaling that can drive the cost down even further, something that’s harder to manage with Lambda’s consumption-based model.