LLMs are breaking 20 year old system design Expectation: This story will be full...

@algernon@come-from.mad-scientist.club

LLMs are breaking 20 year old system design

Expectation: This story will be full of shit.
Reality: Holy mother of god. I did not expect that.

Strap in, fedi friends, this is going to be A Journey down the road of pain and suffering, we're going to take a deep dive into an article where not a single sentence is correct. I'm not exaggerating. It is that bad. If you're reading this on Second Hand, you will need to visit the original thread on the Fediverse (click the title!). This teardown does not fit into a single toot. It really should be a blog post, but that's harder to put on second hand, so a little tootstorm it is.

Lets begin!

Web architecture is built on a 20-year-old assumption that state lives in the database, and compute is stateless. But we're missing a routing primitive.

I'm afraid you're already hopelessly lost, my dear friend in psychosis. Twenty years ago, we were well aware that compute is not always stateless. This architecture was popularized by the "serverless" architecture, which is a modern phenomenon, and is often the wrong architecture to begin with. It's not the architecture we built web stuff on two decades ago, and is rarely the architecture we use today. Of course, in "AI" circles, it is popular, because like "AI", this means renting that "serverless" server from somewhere, and that yields pretty numbers and graphs going up for certain companies that definitely do not have your best interests in mind.

The ‘cloud-native’ architecture of the last decade is built on a 20-year-old assumption: that state lives in the database, and compute is stateless.

No. That's not a cloud-native architecture. That's a "serverless" architecture. They're not the same. And as mentioned above, there is no such 20-year-old assumption. We weren't completely dumb two decades ago - that is also a recent development, with all the deskilling and psychosis going on. Okay, fine, we were dumb two decades ago too, in a different way. Lets not split hairs!

If you want to scale, you scale the database vertically (get a larger machine) or design the database schema around partition the data and you scale your application servers horizontally (add more boxes).

Or, you know, have read-only mirrors, or read-write mirrors, or use a local database and stateful routing & load balancing, or any of the myriad other ways you can scale. If all you know about scaling is that you can make the box big, or you can throw more boxes at it, then you know nothing about scaling.

Any request can hit any server, the loadbalancer doesn’t care, and the database is the single source of truth.

Sure, you can do that. Or you can loadbalance smarter. A loadbalancer doesn't have to be dumb. You can route the same client to the same server. You can route the same client to the same set of servers. You can have many layers of load balancers! You can have other technologies in play that helps spread the load! If you believe load balancers don't care, you haven't seen a load balancer. They care.

For what it's worth, we're a subtitle and three sentences in, and haven't seen a single correct sentence yet. This preamble creates the foundation upon which the rest of the blog post is built, and this foundation rests on legs as stable as... well... imagine the least stable thing you can, and then multiply that by a few.

:thread:

#algernonReviewsHackerNews