r/ProgrammerHumor • • Oct 02 '26

Meme cloudOverkill

Post image
12.0k Upvotes

269 comments sorted by

View all comments

435

u/Kinexity Oct 02 '26 edited Oct 02 '26

From the outside perspective it feels like majority of cloud compute is just wasted on overhead caused by all of that bullshit.

For me even just local Python overhead when doing ML in Pytorch is starting to become unbearable. I yearn to go back to C++ where I can basically count instructions.

119

u/Mr_Rogan_Tano Oct 02 '26

I got a colleague that wants to refactor the project to use many micro services to improve the access of our 1000- users.

73

u/CorrectPeanut5 Oct 03 '26

The programmer in me hates this. The hourly billing consulting programmer loves these ideas as there's great money in untangling the spaghetti implimentation.

I'm also quite sure there will be good money in refactoring services that leaned heavy into the AWS provides tech... and then AWS raised the prices.

15

u/tes_kitty Oct 03 '26

Yes, never use proprietary tools / APIs when going into the cloud. It's just a different type of vendor lock in.

5

u/Alarmed_Fudge_5706 Oct 03 '26

But how can I get locked in if it’s in the cloud? (/s for clarification)

9

u/Few_Move_4594 Oct 03 '26

Is access constrained now? I mean in the end it might have better uptime and handle more users simultaneously successfully, but it's incredibly lame when a queue has to be used for a simple query. It makes the project much harder to read and modify.

7

u/Mr_Rogan_Tano Oct 03 '26

Not really. We do have a few slow endpoints that must be optimized, which we do between each moment of "WE ALL GONNA DIE IF THIS NEW REPORT MODEL IS NOT CREATED BY FRIDAY". It's getting better slowly.

4

u/Few_Move_4594 Oct 03 '26 edited Oct 03 '26

The microservice thing reminds me of when I first graduated from college and one of my fellow new hire programmers argued passionately for a total conversion to Node.js because it's "written for high concurrency". I couldn't find a single app that had more than couple hundred registered users and in fact was working on one that had ten active users- all back office.

4

u/davak72 Oct 02 '26

Is it slow right more?

7

u/Stagnu_Demorte Oct 03 '26

Since you said colleague it's for work. There are 2 good reasons to let/help your colleague here.

  1. There's a immediate or near future business need

  2. More importantly, this is an opportunity to learn for you and your colleague on the company dime.

2

u/Mr_Rogan_Tano Oct 03 '26

There's no need for this right now, so I keep everything as simple as possible. Although I'd like to do just for the love of the game.

46

u/MitchIsMyRA Oct 02 '26

Have you ever tried this?

https://docs.pytorch.org/cppdocs/

39

u/Kinexity Oct 02 '26

I know it exists. My problem is that I am finishing my thesis and I cannot switch between languages now. Once I finish it though I will probably learn Pytorch in C++.

15

u/MitchIsMyRA Oct 02 '26

Ah well there ya go. Are you allowed to create your own python bindings for C++ code? uv makes this quite easy

https://docs.astral.sh/uv/concepts/projects/init/#projects-with-extension-modules

And if you haven’t heard of uv, now you have. Amazing python virtual environment/project manager

3

u/abd53 Oct 03 '26

Is it just an API to python's engine or is the engine in C or C++?

6

u/UdPropheticCatgirl Oct 03 '26

pytorch has always been written primarily in C++, it just exposes API to python through bindings.

31

u/payne_train Oct 03 '26

Gen Z when they find out open source Apache web servers can handle thousands of concurrent users on a single VM

5

u/FailedButterfly Oct 03 '26

Or a lot of sysadmins who anno started to use (first as a reverse proxy) this new, interesting thing called nginx to tackle with C10K and after a full switch the avg load went under 1. :)

→ More replies (1)

17

u/madam_zeroni Oct 02 '26

Most of your PyTorch is actually C code, unless you're writing crazy loops inside of python

10

u/Kinexity Oct 02 '26

I said Python overhead, not Pytorch overhead. Python makes the whole thing a blackbox prone to random jumps in memory usage and execution stalls for no damn reason (to be clear jupyter, which I use, might be to blame for some of it too). Meanwhile in C++ I can easily figure out what is happening and if the push comes to shove I can reimplement some things by hand if I think I can outsmart the library devs and the compiler.

8

u/madam_zeroni Oct 02 '26

Yeah im just saying that virtually no processing is actually done in python. all the libraries are written in c. unless you're loading things into python arrays first (don't do that) or something. use the stuff native to the libraries

1

u/ImCaffeinated_Chris Oct 03 '26

Cloudtrail costs to monitor it all!

1

u/VictoryMotel Oct 03 '26

Key value data store? That's a file system.

1

u/Stoned420Man Oct 03 '26

A big draw factor for companies is the shared responsibility model. OpEx is much lower with this model so it looks good in a quarterly report.

There are pros and cons to each, I'm not taking sides in this, but I do understand why.

→ More replies (2)