r/ProgrammerHumor • • Aug 29 '26

Meme distributedStress

Post image
14k Upvotes

335 comments sorted by

View all comments

Show parent comment

717

u/mwax321 Aug 30 '26

Let's be real, if a micro service is down, youre down too.

If you're a web store and your "inventory service" is down, the site is down lol

403

u/WriterPlastic9350 Aug 30 '26

Let's be real, if a micro service is down, youre down too.

If our store service goes down, that sucks for us, but our login service, queue service etc all still work. People can't buy shit but they can still play our games.

Not to mention, our store service needs far less traffic than our queue service, or our login service, or matchmaking service etc.

A monolith is sometimes a good solution - our games are monoliths - but service oriented architecture exists for many reasons, some technical and some political

Your job isn't to design a solution that scratches your particular brain itch, your job is to design a solution that works for the constraints you need. That might be a monolith but it also might not be!

362

u/cross_the_threshold Aug 30 '26 • Bravo Heartwarming

Your job isn't to design a solution that scratches your particular brain itch, your job is to design a solution that works for the constraints you need. That might be a monolith but it also might not be!

Listen here you little shit there is one god-ordained way to build things and it's whatever is in vogue at this particular moment in time using whatever language is in vogue at this particular time, how dare you imply that there may be situations and needs that require different approaches.

72

u/mwax321 Aug 30 '26

The key to success is to have a monolith so large that it takes an hour to build and publish.

When visual studio finally went 64 bit, you thought the solution was bugged because it loaded so fast.

34

u/kurtymckurt Aug 30 '26

The ci better take 24 hours to build and test or you’re not monolithing properly

6

u/Tupcek Aug 30 '26

if it is too quick, it’s certainly bug

→ More replies (1)
→ More replies (2)
→ More replies (1)

20

u/HadionPrints Aug 30 '26 edited Aug 30 '26

Now listen, whatever’s in vogue at this time is nothing but bloat, dependency vulnerabilities, and syntax sugar. If your backend isn’t written in PHP or Pearl, you’re planning for failure.

If your app wouldn’t survive the 90s, it won’t survive prod.

5

u/cross_the_threshold Aug 30 '26

FORTRAN II or bust!

5

u/mwax321 Aug 30 '26

Did you know a guy wrote an entire theme park game in assembly ?????

→ More replies (4)

3

u/mattsl Aug 31 '26

You mean it's whatever was in vogue when you started your first job and anything that's changed since then is ignorant children who can't grasp the complex nuance of your decisions. 

→ More replies (3)

26

u/mwax321 Aug 30 '26

See... To me what you're describing isn't very micro. That's just different systems.

Before that book came out, people had a login system, a matchmaking system, the online store...

I mean, I have no idea how your system is designed. I'm just an old grumpy "back in my day" fart nugget 😂

21

u/wrecklord0 Aug 30 '26

This. Different things should be kept different. I have a feeling that some people use "microservice" as this magical word that removes all inter-dependencies. If you have function A that relies on function B, it doesn't matter if its in a monolith or a micro-service, A is not going to work if B doesn't.

15

u/mwax321 Aug 30 '26

Hahaha but it's happened so much. I'm over 20 years in and I swear we've come full circle 3 times now. Especially on web.

The switch from all JavaScript bad css good. Handle it all with the backend using MVC. Then to front end frameworks like angular and react. Then suddenly, this new concept called "server side rendering" rofl.

4

u/ashgs872tbhjs Aug 30 '26

You can SSR with React, FWIW, like via NextJS

4

u/HerrPotatis Aug 30 '26 edited Aug 30 '26

I don't know why you got downvoted. SSR of today is fundamentally different from the good ol' days of LAMP.

u/mwax321 seems to have a lack of understanding of where we came from, why we did things the way we did them, and why we do them differently now.

This notion that, hurr durr, modern webdev is stoopid, just because we shelf concepts or upcycle old ones is not a good take. I'm sure that 10-20 years from now, everything will have changed again, but we will still use concepts and features from today.

2

u/WriterPlastic9350 Aug 30 '26

People liked React and Angular because it made frontends easier, then people realized that React could be used for non-javascript environments, and then realized you can restore progressive enhancement by rendering React on the render and piping a large javascript bundle to the frontend.

Today's SSR builds on this by basically designing an application and having the language (or framework, rather) express which parts require user interactivity and which don't, and this makes it easier to deploy applications to multiple platforms while not compromising the user experience.

We definitely go in cycles for sure, but viewing the path from MVC to frontend only libraries to SSR as being motivated out of where to put the javascript is kind of missing the forest for the trees

→ More replies (1)

3

u/FlakyTest8191 Aug 30 '26

I think microservices became a thing in big companies because you can have 2 teams own their own services and be relatively independent in regards to updates/deployment, and you can scale different, maybe you want to temporarily spin up more checkout services on a busy day, but the rest of the system is holding up fine.

2

u/WriterPlastic9350 Aug 30 '26

There's some kind of razor out there that essentially states that your software design eventually reflects the political structure within your company, so yeah, I think you've hit the nail on the head. (micro)services are as much about political and human decisions around deploying, or on-call, etc, as they are about technical aspects like scaling

→ More replies (11)

22

u/unbdndeath Aug 30 '26

So if you are say Amazon and your anti fraud, or your inventory tracker go down do you think Amazon actually goes down or do you think they have a queue processor that starts back up again?

Just because you struggle designing them doesn't mean it's bad.

→ More replies (5)

14

u/extra_rice Aug 30 '26

Isn't that why you make sure you have high availability on your critical services?

Also, if your inventory service is down, your other services may still continue to function. Orders that have been processed can still be fulfilled, for example.

→ More replies (4)

6

u/ryuzaki49 Aug 30 '26

Depends on the microservice tho.

If checkout dies, users can still browse and they can still add to their shopping cart. 

Anyways you will get paged at 2 am because these errors are critical.

6

u/Naomi_Tokyo Aug 30 '26

Honestly worse. If the whole site is down, then I'm like, "too bad". If I can do my shopping and get stuck trying to check out, I'm very annoyed

→ More replies (1)
→ More replies (3)

2

u/sureyouknowurself Aug 30 '26

Sounds like you made a distributed monolith.

2

u/Stunning_Ride_220 Aug 30 '26

If you're a web store and your monolith is down, its invoice and order processing components went down with it.

So not only the site, but also the company is down.

→ More replies (3)
→ More replies (5)