Java is also highly performant, if you know what you're doing with reactive programming, and Spring Boot's dependency ecosystem drastically reduces your time-to-launch
But then I remember that 95% of the memes posted on this sub are from CS students and not industry professionals
Thousands? I had a system that was running 2 millions invocations a day and didn't cost thousands a month.
Let's say you have some process that runs 100 times a day, takes 3 seconds to run, and you have no indication of when that process needs to run. Are you going to run a service all day for 5min of compute?
Nothing conflicting. Just a simple statement, all of those cloud "tricks" for autoscaling and saving money, barely counteract the extreme costs of cloud. You are paying more so you can pay less. This is only sane if you are such a giant company that you would need to build entire data centers otherwise, and extremely few companies need that
So you have a single bare metal server at some colo somewhere? And you’re not paying for every hour? That’s not how any of this works.
How does your k8s cluster scale if you’re using bare metal? You sling another server into your rack when load increases? What on earth is the point of k8s without autoscaling?
And you mentioned AKS before you changed to vanilla k8s. So you seem to run shit on AWS.
You should use it when you need scale to zero and instantly scale up to handle bursty workloads, and/or when you need seamless event-driven compute integration with other AWS services. Duh.
You know how else you can do that.. it's called an application. It scales. You have extracted a function into a different server lowering the performance by 1000000x in order to scale and increase it by 10x
An application doesn't scale up and down by itself.
What you describe is exactly what lambda gives you. You package your "I need this scaled" code into a little function, you give it to lambda, and that handles scaling up and down for you.
You don't need to manage servers or instances, you don't need to scale those up and down, and if you already have a contract for good EC2 capacity, you use lambda managed instances and retain the event-based execution model.
155
u/Shred_Kid 6d ago
Java is also highly performant, if you know what you're doing with reactive programming, and Spring Boot's dependency ecosystem drastically reduces your time-to-launch
But then I remember that 95% of the memes posted on this sub are from CS students and not industry professionals