6 ms·
That calculation doesn’t include the salary of the person managing those EC2 instances. Lambda is easier to manage and costs less time than an EC2 box. SSH keys
by nothrabannosir 8y ago
That calculation doesn’t include the salary of the person managing those EC2 instances. Lambda is easier to manage and costs less time than an EC2 box. SSH keys, backups, AMI base images, system updates , it all adds up. Ansible and terraform are so far removed from the core competency of any company that you really need to ask yourself, for any second you spend working on them: is this worth it? At almost no company’s scale* is it so.
Salary is a hidden cost people often forget. Or time spent by your programmer’s debugging infra; time not spent creating value. Frustration from having to deal with TF or ansible in the first place.
These are all benefits of a serverless solution which cost aware criticisms should at least try to quantify and take into account.
Signed, not-a-shill.
* I’ll rephrase: a significant amount of companies don’t have the luxury of being so swamped by requests they can saturate EC2 boxes and make the devops overhead (which, I’m arguing, is big but relatively constant/“sub linear”) worth the price difference (which scales linearly). Significant enough for these articles to have a raison d’être.
- sheeshkebab 8y agoSalary of developers and sre that needs to manage this either way? Lambda and api gateway is nothing but expensive vendor lock-in.
- moduspol 8y agoExcellent point. That's why we don't bother with server virtualization, Docker, or Ansible.
- sheeshkebab 8y agoDocker, ansible, red hat stuff are all open source that you can run on your own. There is no vendor lockin.
- moduspol 8y agoBut they significantly reduce the workload on the people that would otherwise have to manage those things, just like a serverless architecture does. If you want to argue about vendor lockin, sure. But removing the necessity of managing scaling, individual instances, and OS / software patching is significant.
- geggam 8y agoNothing is reduced just shifted away from your perspective. You pay for the server running your serverless code. You just share that cost. Sharing the cost brings benefits but it also brings pain. First time you hit an AWS hard limit you will realize how much pain
- moduspol 8y ago> Nothing is reduced just shifted away from your perspective. You pay for the server running your serverless code. You just share that cost. This is no different from any other abstraction. > Sharing the cost brings benefits but it also brings pain. First time you hit an AWS hard limit you will realize how much pain Many AWS services have no architectural scaling limits. S3, Lambda, API Gateway, DynamoDB, SNS, and SQS are examples. And you can always take comfort in knowing that many people are actively using the service at far greater scale than you ever will. That's not to say they won't ultimately limit (e.g.) how many S3 buckets you create, but being able to create unlimited S3 buckets is not necessary to use S3 as designed in a near-infinitely scalable way.
- geggam 8y ago>Many AWS services have no architectural scaling limits. S3, Lambda, API Gateway, DynamoDB, SNS, and SQS are examples. And you can always take comfort in knowing that many people are actively using the service at far greater scale than you ever will. All of those services have limits, just because you havent experienced that scale doesnt mean others havent.
- moduspol 8y ago
- some_account 8y agoMy last job was running a lot of open source stuff and they spent maybe 20 hours per week troubleshooting things, multiple people together, while the rest of the team was waiting. It was a complex environment with high availability though, with maybe 15 different types of software trying to work together... After using AWS for a while, I have to say that things usually work and don't suddenly start to malfunction, even when not doing serverless. Downsides of serverless is definently vendor lock in, but I think having the complexity of open source software in house, and being able to try new software, is a double edged sword that can cost huge money as well. It's not a simple choice.
- falcolas 8y agoIt's not just lockin. It's troubleshooting Lambda. Here's a couple of questions and answers we've recently delved into: - How do I avoid a cold start? (Fake calls into the system to the point where AWS has to start more instances of your application) - Why is my cold start time different between development to production? (Production is in a VPC, which has greater instance spin up times) - Why has Lambda stopped executing on my Kinesis stream? (Oops, AWS' bad) - How can we get more parallel Lambda processing on a Kinesis stream? (Clone the stream and attach to the cloned stream) - What can I do to reduce the cold start costs for Java? (Specify your objects as static, since those are evaluated at JVM startup, which AWS doesn't charge you for) - How do I do Infrastructure as code? (CloudFormation; expect an average of 4 CF objects per function. SAM makes the CF more user friendly, but it's harder to debug and encourages the creation of extra infrastructure) - How do I increase the bandwidth allocated to my Lambda? (Increase the memory allocation)
- scarface74 8y agoWhat can I do to reduce the cold start costs for Java? (Specify your objects as static, since those are evaluated at JVM startup, which AWS doesn't charge you for) Well Java was the first mistake if you want a reasonable startup....
- scarface74 8y agoSo where exactly are we going to run this “on our own” in a regionally or globally distributed manner? Then we have to pay more people for netops to do things that doesn’t have any competitive advantage.
- bryanlarsen 8y agoVery few companies are big enough that they can make the devops overhead worth the price difference, but most of those plan on eventually being so. So there's an argument to be made that the knowledge should be grown in house while you can still tolerate the small outages you get when you have stuff misconfigured or unbalanced. Probably not a good argument though. If you're successful enough to be saturating servers you're probably successful enough to be hiring experienced competent help for the transition.
- runlevel1 8y agoLambda is often the way to go, but there are a couple tipping points where it becomes less appealing: - When you start having to spend a lot of time working around its limitations. (As is the case with all managed services.) - When the sum of its parts create a distributed system whose complexity costs you more in productivity than it gives back. Performance limits will get better with time. The complexity cost is more difficult to predict. Hopefully it will improve as best-practices emerge and tooling gets better.
- Kabootit 8y agoDebugging, organizing, and testing lambdas vs traditional stacks is the hidden costs on the developer side.
- scarface74 8y agoTesting a lambda is just as easy as testing a controller action in the typical MVC framework. You just pass a JSON payload to your lambda handler. Organizing is also simple - if you know CloudFormation. You should learn that anyway to provision resources in a repeatable fashion.
- Zelphyr 8y agoIn my experience, the developer time it takes to get a serverless application running (on AWS anyway) far exceeds the benefits that serverless brings. We spent over six months on a project written in serverless that we could never really get working properly. We dumped all that code and rewrote it on a standard LAMP stack in less than half that time. Factoring in that the problem was better understood the second time around, it would still have been cheaper to build it the way we are from the beginning.
- scarface74 8y agoWas that due more to lack of training? I am first and foremost a developer, but I’ve spent weeks understanding AWS from a netops, devops and development standpoint. I’m also working on certifications mostly as a method to force me to learn in a structure manner, my company will pay for them, and they still have some market value.
- romaniv 8y agoTraining also takes time.
- scarface74 8y agoAre you proposing that developers shouldn’t study and learn about whatever infrastructure they are using?
- tjoff 8y agoIsn't that the whole point of the cloud? I mean, if you care about the infrastructure there are few reasons left not to self-host.
- scarface74 8y agoThe point of the cloud is not to be ignorant about the infrastructure. It’s to not have to babysit hardware and focus on your core competency - let someone else do the “undifferentiated heavy lifting”. I’ve seen cases where “AWS Architects” spun up a bunch of EC2 instances and ran thier own services that had AWS managed equivalents and wonder why everything costs more. Could it possibly be things like they have 3 EC2 instances to run a cluster for Consul instead of using AWS services? It’s slso about elasticity. It’s much easier and cost effective to spin up 20 VMs (whether it be EC2 instances or Lambdas which are basically VMs) to run a test and see how many you actually need. Other times it makes sense to use a bunch of spot instances to save money and choose a cost optimization based on throughout vs. cost for backend processing.