In terms of system architecture, are more places that use AWS (particularly outside very large orgs) relying more and more on Lambda to run their code, vs spinning up EC2 instances and running code there? Isn’t the former option more expensive?
I’d say the opposite as people in that head space moved to cloudflare workers or vercel
Layers are a disaster
I work at a huge company and we had an enterprise wide push to get everything we could on fargate and lambda. It saved tons of money as most of our compute was over provisioned and we burned tons of time on stuff like OS patching that we don’t have to worry about anymore.
As an ops manager I’m trying to use less lambda. The dev cycle is terrible
I’ve been doing cloud stuff for 10 years and never used EC2. Mostly lambda with some EKS. Idk why you would use EC2, if you had a steady known work stream maybe?
I believe the answer is yes. AWS is publicly saying that lambda is the fastest growing service. This implies that relatively it is catching up to EC2
We went heavy on Lambda for a little while and then reversed course and doing much more on ECS/Fargate. Almost nothing on straight EC2.
Whether lambda is more cost effective than always-on compute depends solely on your workloads. That said, containers are certainly becoming popular as replacements for many things you might have used VMs for.
We run our own database nodes on EC2 instances so we can have control of networking and use of NVMe drives.
We also maintain a fleet of EC2 instances for ECS task placement across the entire company
Not every software is Lambda friendly. We have some 3rd party monoliths that just don’t make any sense running in Lambda but live happily on EC2
There is no reason to use ec2 unless you are working on some edge case stuff or you need to host some weird old third party software while you find a replacement. If you have a long term strategy to use ec2 youre probably making a mistake.
the ol’ lift and shift
Isn’t the former option more expensive?
Per cpu-second, yes. But you pay for way less idle time. So many workloads are incredibly spikey in traffic.
Building on lambda means not paying for provisioned capacity to serve the peak when you are at a lull. It’s a per-request or per-job scaled auto-scaling.
And the limitations of lambda have been getting smaller and smaller, cold start times are something that with a little setup are substantially reduced.
Lambda. We can deploy multi region hot failover and hardly pay anything to do it (comparatively)
We run Openshift on EC2s, mostly because we prefer it over EKS (a multi tenant-ish environment)
I’m sure a representative answer for this question is checking other AWS services itself for a comparison of how many are built on Lambda as opposed to on EC2
Complete control would be my best guess, but when you stop and think about it, is it really complete control.
Cost is not a main consideration. I was a full time UNIX/Linux engineer before switching to doing cloud exclusively. I am still very good at managing Linux. That is exactly why i try to avoid touching compute instances as much as possible. You have to configure and manage them, patch, monitor, install packages, troubleshoot performance, maintain security, sometimes join them into Windows AD… In corporate setting you also have to install a million different security/malware/monitoring agents on every instance so generating custom AMI becomes a nightmare.
With lambda it is just matter of zipping your python code. So now if something can be done with lambda - it is going to be done with lambda. If lambda is not possible- then ECS+fargate. Or some EKS setup (hopefully managed by someone else). Using ec2 is the very last resort (generally only to run some old corporate commercial app which can not be containerised).
Why would fargate be an architecture smell?