Live data from Hacker News

Leaving serverless led to performance improvement and a simplified architecture

unkey.com

31–40 of 272 posts

Re: Leaving serverless led to performance improvement and a simplified architecture

#31
post #23

The takeaway here isn’t that serverless doesn’t work, it’s that the authors didn’t understand what they were building on. Putting a latency-critical API on a stateless edge runtime was a rookie mistake, and the pain they describe was entirely predictable.

The takeaway isn't that they didn't understand, it's that they are sharing information which you agree is valuable

Re: Leaving serverless led to performance improvement and a simplified architecture

#32
post #26

Earlier quoted context omitted.

Backup strategy? What do you mean by that?

Servers go down. What is the plan to get them "backup" and running ;)

They probably don't need one for the application servers. And they probably already have a backup strategy for their DBs.

Re: Leaving serverless led to performance improvement and a simplified architecture

#33
post #23

The takeaway here isn’t that serverless doesn’t work, it’s that the authors didn’t understand what they were building on. Putting a latency-critical API on a stateless edge runtime was a rookie mistake, and the pain they describe was entirely predictable.

> Putting a latency-critical API on a stateless edge runtime

Isn’t this the whole point of serverless edge?

It’s understood to be more complex, with more vendor lockin, and more expensive.

Trade off is that it’s better supported and faster by being on the edge.

Why would anyone bother to learn a proprietary platform for non critical, latency agnostic service?

Re: Leaving serverless led to performance improvement and a simplified architecture

#35
These two have resonated with me deeply.

- Eliminated complex caching workarounds and data pipeline overhead

- Simplified architecture from distributed system to straightforward application

We, as developers/engineers (put whatever title you want), tend to make things complex for no reason sometimes. Not all systems have to follow state-of-the-art best practices. Many times, secure, stable, durable systems outperform these fancy techs and inventions. Don't get me wrong, I love to use all of these technologies and fancy stuff, but sometimes that old, boring, monolithic API running on an EC2 solves 98% of your business problems, so no need to introduce ECS, K8S, Serverless, or whatever.

Anyway, I guess I'm getting old, or I understand the value of a resilient system, and I'm trying to find peace xD.

Re: Leaving serverless led to performance improvement and a simplified architecture

#37
As someone who worked with serverless for multiple years (mostly amazon lambda but others too) i can absolutely apporove the authors points.

While it "takes away" some work from you, it adds this work on other points to solve the "artificial induced problems".

Another example i hit was a hard upload limit. Ported an application to a serverless variant, had an import API for huge customer exports. Shouldnt be a problem right? Just setup an ingest endpoint and some background workers to process the data.

Tho than i learned : i cant upload more than 100mb at a time through the "api gateway" (basically their proxy to invoke your code) and when asking if i could change it somehow i just was told to tell our customers to upload smaller file chunks.

While from a "technical" perspective this sounds logical, our customers not gonne start exchanging all their software so we get a "nicer upload strategy".

For me this is comparable with "it works in a vacuum" type of things. Its cool in theory, but as soon it hits reality you will realice quite fast that the time and money you safed on changing from permanent running machines to serverless, you will spend in other ways to solve the serverless specialities.

Re: Leaving serverless led to performance improvement and a simplified architecture

#38
post #23

The takeaway here isn’t that serverless doesn’t work, it’s that the authors didn’t understand what they were building on. Putting a latency-critical API on a stateless edge runtime was a rookie mistake, and the pain they describe was entirely predictable.

My personal experience is that if you want guaranteed anything (quick scaling, latency, CPU, disk or network throughput), your best bet is to manually provision EC2 instances (or use some API that does). Once you give up control hoping to gain performance for free, you usually end up with an unfixable bottleneck.

Re: Leaving serverless led to performance improvement and a simplified architecture

#39
Incredible that these kinds of services were hosted like this.

I guess they never came out of MVP, which could warrant using serverless, but in the end it makes 0 sense to use some slow solution like this for the service they are offering.

Why didnt they go with a self hosted backend right away?

Its funny how nowadays most devs are too scared to roll their own and just go with the cloud offerings that cost them tech debt and actual money down the road.

Re: Leaving serverless led to performance improvement and a simplified architecture

#40
post #6
post #2

Their problem isn't serverless, rather Cloudflare Workers and WebAssembly. All major cloud vendors have serveless solutions based on containers, with longer managed lifetimes between requests, and naturally the ability to use properly AOT compiled languages on the containers.

At that point, why should I use serverless at all? If I have to think about the lifetime of the servers running my serverless functions?

[deleted]
Post reply on HN