News for hackers. Stuff that matters.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by BbzzbB on Thursday May 04, 2023 @04:20AM (#35812645)
There was an article not long ago from AWS saying they'll be focussing on cutting cost for customers. Maybe the next step of that process will be pushing their clients off of AWS and telling them to just host on prem.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by bootsmann on Thursday May 04, 2023 @05:04AM (#35812895)
Still waiting for python 3.11 on lambdas so must not be that big of a focus.

(They finally delivered 3.10 last month at least)

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by IshKebab on Thursday May 04, 2023 @05:10AM (#35812931)
If you're sensitive to a 25% performance improvement, why not switch languages and get a 1000% performance improvement?
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by techdragon on Thursday May 04, 2023 @05:23AM (#35813000)
An easily tested compatible upgrade that gets a free performance boost… vs lots of engineering effort to rewrite… yeah that’s just not going to fly with management. Who are probably looking at the 25% performance boost as a 20% cost reduction not a 20% speed increase
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by datadeft on Thursday May 04, 2023 @05:56AM (#35813173)
It is possible[1]. You are better off this way than the AWS "native" way.

1. https://dev.l1x.be/posts/2023/02/28/using-python-3.11-with-a...

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by easton on Thursday May 04, 2023 @06:10AM (#35813268)
The only problem with that is that Docker lambdas boot slower than lambdas with the built in runtime (not ridiculously slow, but could be 2x or something). God help you anyway if you’re trying to do something latency sensitive on Lambda, but if you are then you probably don’t want to add more time for a docker pull.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Thursday May 04, 2023 @01:50PM (#35819426)
I used to believe the same thing, I've began thinking it might now be false yet often repeated. AWS claims that:

> Lambda also optimizes the image and caches it close to where the functions runs so cold start times are the same as for .zip archives.[0]

This[1] article shows almost no discernable difference in .NET cold start times between containerised and regular lambdas.

It's easy to imagine developers pushing up bloated images, slowing startup down and blaming docker/AWS for it.

[0] https://aws.amazon.com/blogs/compute/working-with-lambda-lay...

[1] https://www.kloia.com/blog/aws-lambda-container-image-.net-b...

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by re-thc on Sunday May 07, 2023 @02:46AM (#35848580)
The situation does keep changing - AWS does optimize things.

I'm not so sure it's a black/white true/false. Depends on what goes in the docker image. It's something like for larger deployments docker is faster but for small deployments it's the other way.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by squeaky-clean on Thursday May 04, 2023 @04:01PM (#35821285)
We've actually observed the opposite at our company. Moving from a Python 3.8 built-in to Docker based changed our response times from about 40ms to 30ms on average.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by nodefortytwo on Thursday May 04, 2023 @05:41AM (#35813096)
To be fair to AWS, they do work really hard to (at least at an account level) to optimize workloads with you. They do this so overall you'll move more workloads to them.

its quite simple, if workload x can be done 100% cheaper on-prem then its an obvious move (probably) if AWS manage to get that closer to 30-40% then the operational benefits of using AWS make more sense, more workloads, more total spend.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by ivanche on Thursday May 04, 2023 @06:23AM (#35813343)
You mean 50% cheaper on-prem, right? 100% cheaper is 0.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by kypro on Thursday May 04, 2023 @06:00AM (#35813188)
I know you're joking around, but no, as they also explained a benefit of cloud (and therefore using AWS) is that it can scale flexibly with their customers' businesses.

If your business invests in physical servers anticipating strong growth next year then later finds out actually we're going into a recession and those servers are no longer needed, then that's a sunk cost.

With cloud if demand drops you can scale up and down as needed. Helping customers cut costs during difficult times makes sense since those customers are more likely to survive and stay with you through good times.

So in context I think this article makes sense since long-term sustainable growth of AWS should be linked with the growth of their customers' businesses.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by throwaway283bd on Thursday May 04, 2023 @06:39AM (#35813437)
There's a middle ground between cloud and on-prem

You don't need to go all in on buying racks and other hardware, when you can rent servers at Hetzner at a cheaper cost than aws.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by awaythrow98765 on Thursday May 04, 2023 @06:06AM (#35813225)
> If your business invests in physical servers anticipating strong growth next year then later finds out actually we're going into a recession and those servers are no longer needed, then that's a sunk cost.

Cloud vendors also mostly sell minimum use packages for discounts in the range of 20 to 80% (called e.g. "committed use discount" or "compute savings plan"). Lots of businesses use those, because two-digit discounts are real money, but they might find themselves in the same spot as with physical hardware they don't need...

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by steveBK123 on Thursday May 04, 2023 @06:49AM (#35813514)
Yup, and you are paying the premium of cloud forever, which over some vanilla compute & storage can be a lot.

And cloud proponents pretend data center / rack space / server leasing doesn't exist either, for those trying to avoid large up front costs.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Thursday May 04, 2023 @01:21PM (#35818953)
I'm a cloud proponent because it means not having to sit through hours of meetings to deploy a $5/mo virtual machine.

It also means some poor fuck at AWS gets woken up in the middle of the night instead of me when things go to shit.

It absolutely comes at a cost, and might not be the right fit for an organisation that's absolutely on top of it's hardware requirements and can afford to divert resources from new development work. For the rest of us it saves a lot of dev hours that would have otherwise been spent in pointless meetings or debating the best implementation of whatever half-baked stack has oozed it's way out of the organisation in an attempt to replicate what's handed to you with a cloud solution.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by awaythrow98765 on Thursday May 04, 2023 @02:38PM (#35820146)
> I'm a cloud proponent because it means not having to sit through hours of meetings to deploy a $5/mo virtual machine.

And endless orgies of "call for pricing" with hardware vendors and hosting. Shitty websites where you can buy preconfigured servers somewhat cheaply, or vendor websites where you can configure everything but overpay. Useless sales-droids trying to "value-add" stuff on top.

Cloud buys are a lot friendlier, because you only have the one cloud vendor to worry about. Entry level you just pay list price by clicking a button. If you buy a lot, you are big enough to have your own business people to hammer out a rebate on list price, still very easy, still very simple. But overall still more expensive unfortunately.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by jjav on Friday May 05, 2023 @12:30AM (#35825241)
> I'm a cloud proponent because it means not having to sit through hours of meetings to deploy a $5/mo virtual machine.

I'd hope there aren't actually hours of meetings for a single $5/mo VM?

But I would hope there are reviews and meetings when deploying enough of these to amount to real money. Companies that don't do that soon enough find themselves with a million dollar AWS bill without understanding what's going on.

Spend is spend, it's vital to understand what is being spent on what and why.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Friday May 05, 2023 @12:59PM (#35832046)
> I'd hope there aren't actually hours of meetings for a single $5/mo VM?

Slightly exaggerated in the case of the $5 machine, probably 2-3 manhours total but it took 4 days for it to be deployed instead of ~5 minutes. We did spent tens of hours justifying why the business should spend ~$100 more per month on a production system where the metrics clearly indicated that it was resource constrained.

The same IT department that demanded we justify every penny spent did not apply any of that rigour to their own spending. Control over the deployment of resources was used as a political tool to increase their headcount.

> I would hope there are reviews and meetings when deploying enough of these to amount to real money. Companies that don't do that soon enough find themselves with a million dollar AWS bill without understanding what's going on.

I consider the judicious use of resources to be part of my job as a software engineer. A development team that isn't considering how they can reduce spend, tidy up, or right-size their resources is a massive red flag to me. Organisations frequently shoot themselves in the foot by shifting that responsibility away from the development team. The result is usually factional infighting and more meetings.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by jabradoodle on Thursday May 04, 2023 @07:21AM (#35813761)
It's not really the same spot in that your paying monthly rather than upfront. Devs tend to think about total $, the business/accountants do care about Opex vs Capex.

Also it's going to be simpler to provision your base (commited use) on the cloud and then handle bursts on the cloud, than it is to have your base on prem and burst to the cloud.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by awaythrow98765 on Thursday May 04, 2023 @08:09AM (#35814080)
That is not really a difference, you may as well lease your server farm in the basement, practically the same cost as buying it, just as a monthly payment with the supposed "advantages" the business people might care about.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by adql on Thursday May 04, 2023 @08:47AM (#35814410)
> It's not really the same spot in that your paying monthly rather than upfront. Devs tend to think about total $, the business/accountants do care about Opex vs Capex.

You can buy physical servers in leasing ,turning it into opex

You can also rent them for little bit extra via managed dedicated servers from vendors like OVH.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by runlaszlorun on Thursday May 04, 2023 @09:28AM (#35814984)
I think this point isn’t made often enough.

Not going with a big cloud provider def doesn’t mean that you need to buy physical servers and build an on-prem data center.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by adql on Thursday May 04, 2023 @11:23AM (#35816867)
And other point I also seen used to lie about cloud cost is saying you save so much on engineers.

...while forgetting to have sane on-call rotation for cloud you also need at least 3 people on that rotation that are also clued in on cloud operation enough. Sure they can be "developers" but if your app architecture requires so little maintenance and flea removal that they are not doing ops jobs much, chances are so would it in either rented or dedicated server env.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by belorn on Thursday May 04, 2023 @06:21AM (#35813335)
Using insurance to cover unexpected costs is always a gamble, one way or an other. A business that invest into physical servers could sell of those servers if they later find out that there is a recession, which might cost more or less business compared to a cloud solution.

If a business invest into a cloud infrastructure and create a binding contract for 5 years, only to find out that they actually want to abandon that project a year later, that is also a sunk cost. Long term contracts tend to be cheaper, so its a trade off between saving money vs risk.

It all depend on the risk analysis, how risk averse one want to be, and the economics/liquidity needs.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by colonelpopcorn on Thursday May 04, 2023 @06:55AM (#35813566)
Scale to zero has always been my favorite feature of serverless compute. If there was a fast way to do it with VMs, I'd certainly consider it.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Scarblac on Thursday May 04, 2023 @06:59AM (#35813602)
> If your business invests in physical servers anticipating strong growth next year then later finds out actually we're going into a recession and those servers are no longer needed, then that's a sunk cost.

Yes, but that sunk cost is probably still lower than what you paid AWS for the option to scale up and down.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by NohatCoder on Thursday May 04, 2023 @07:11AM (#35813687)
This. And I think people tend not to understand how little actual hardware they are paying for when using AWS et al.

A really cheap server leasing deal will cost you yearly about as much as the purchase price of the server. With opaque AWS services it is probably more like a month of subscription to pay for the hardware that you are indirectly using.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by adql on Thursday May 04, 2023 @08:23AM (#35814182)
And that you can also lease servers directly from vendors like OVH so you don't even need to bother with the "drive to datacenter and install it" part. It's more expensive but still far cheaper than cloud
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by hobs on Thursday May 04, 2023 @08:37AM (#35814304)
I just spent the better part of two years advocating, pushing, and fighting for months to add new bandwidth to our datacenter.

Thankfully after they understood the problem it only took 8 months of procurement, techs going to the data center 10+ times with endless screw ups, and everyone pointing the finger at each other.

While the cloud sucks in many ways the traditional setup has big problems as soon as you hit a midsize company ime.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by dijit on Thursday May 04, 2023 @09:08AM (#35814679)
I counter your anecdote with mine!

A cloud vendor (who will be nameless as I signed an NDA specifically that prevents me from disparaging them; but one of the big three) ran out of capacity for me and it was 3 months before they managed to fix it. -- that was with a couple million a month in spend.

Cloud is still servers; you just depend on someone elses capacity management skills and you hope that there isn't a rush to populate a location (like when a region goes down and everyone's auto-provisioners move regions to yours)

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Thursday May 04, 2023 @01:38PM (#35819245)
Barring exceptional circumstances, I don't have to fight that fight at the cloud provider though. Their business is more likely to be amenable to maintaining and expanding reasonable levels of capacity.

I have to deal with a grumpy finance guy that thinks my whole department is overpaid already, especially so if we might use the dreaded `CapEx` word.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by hobs on Thursday May 04, 2023 @02:31PM (#35820019)
3 months vs 2 years, I'll take it :)
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by NohatCoder on Thursday May 04, 2023 @03:40PM (#35821042)
I think the main point here is that there is no limit to incompetence. And sure, having your own servers allow for some goofs that won't happen with cloud (the opposite is also true). But your org had the means to fix the issue, and they choose not to. That has fundamentally got nothing to do with technology choice.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by re-thc on Sunday May 07, 2023 @02:35AM (#35848497)
Or maybe there's a mid point. It's not datacenter or cloud. There are providers offering physical servers for rent for example. Lots of combinations in-between.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Thursday May 04, 2023 @01:34PM (#35819181)
I worked for a global company that maintained it's own "cloud" of VMs that we'd use for development purposes.

They were entirely unusable.

Opening a relatively small file in notepad could take multiple minutes. OS click and typing response times were measured in seconds.

Despite wasting thousands of developer hours each year, they refused to upgrade their data center. Probably because doing so would have been a major budget fight that requires an executive to actually advocate for something instead of making their characteristic animalistic grunts of agreement.

For better or worse I haven't seen the same issue with cloud expenditure. It seems to be perceived as a necessary expense, rather than the engineering department getting ideas above their station.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by manicennui on Thursday May 04, 2023 @09:55PM (#35824434)
Notepad? Clicking? I think I see the problem.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Jochim on Friday May 05, 2023 @08:56AM (#35828622)
Mostly deployed on windows VMs, the only access was to remote in.

Typing/executing in Powershell was just as slow

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by gtirloni on Thursday May 04, 2023 @07:03AM (#35813630)
Most companies will pay way more for the engineers maintaining their on-premises infrastructure than they would for AWS. On-premises still makes sense when you reach a certain scale. When you reach a certain scale.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by NohatCoder on Thursday May 04, 2023 @07:21AM (#35813757)
They kind of need to be there anyway, physically maintaining servers turns out to be a miniscule part of the whole maintenance. If you really care about uptime you still need people on-call who can intervene as necessary.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by gtirloni on Thursday May 04, 2023 @07:37AM (#35813854)
It's not a minuscule part of a small company. I made the point that on-premises makes sense after a certain scale.

Once you have on-premises you need people that know switches, routers, rackmount server, hardware, virtualization, etc, plus keeping all of that properly maintained (security patches, IaC, periodic updates, analyzing performance, making sure it's properly architected, etc).

I often see people saying it's the same cost or less but it's really not. Unless you have no idea what you should be doing.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Scarblac on Thursday May 04, 2023 @08:31AM (#35814250)
I don't know, I worked at a few companies that did this early in my career (early 2000s), and it was just the devs or the sysadmin of the office IT that did this sort of thing. There are lots of people who know enough about switches and routers to get them up and running.

Virtualization, IaC, analyzing performance, right architecture etc is all for later, when you've grown enough to need that.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by gtirloni on Thursday May 04, 2023 @10:29AM (#35815921)
> Virtualization, IaC, analyzing performance, right architecture etc is all for later, when you've grown enough to need that.

Yeah, I think it might be a different perspective about when that all should be done.

I tend to do that right from the beginning because I often see it snowball later on and nobody ever fixes it or does it "properly" (in my opinion, possibly not the right one).

But that's a good point, no doubt.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by jabradoodle on Thursday May 04, 2023 @07:17AM (#35813732)
You also have to account for the fact your paying upfront the cost for the lifetime of the infra, vs paying monthly.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by Scarblac on Thursday May 04, 2023 @08:27AM (#35814217)
It's also possible to rent hardware in a rack and pay monthly, that's much cheaper than cloud services.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by zamnos on Thursday May 04, 2023 @07:46AM (#35813913)
It depends on your timing. If you're extremely unlucky, you'll buy the new set of servers and the recession will hit right after you sign the PO. Probability says you're not likely gonna be that unlucky, so the recession will hit probably elsewhere in the physical servers' life cycle. A recession hits, and now there's a focus on cutting costs. With AWS, you don't have much choice - if you stop paying the bill, the servers evaporate into the cloud. Physical servers don't. You can change their replacement schedule and just wait arm few years more to replace them. Hopefully the recession has passed by then and you can buy a whole new pile of servers.

Really though, it seems like a hybrid on-prem/cloud approach is one to consider. Software like Anthos eases this, though there are also pitfalls with this approach too.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by codedokode on Thursday May 04, 2023 @08:11AM (#35814093)
You can sell the servers and partially return the money.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by briffle on Thursday May 04, 2023 @10:52AM (#35816299)
We have some DB servers that occasionally need to do very large batches of transactions. They run all month with a couple of CPU's, and a small amount of ram to make sure they are 'caught up' with production, and before the batches are run, get shutdown, and changed to 32 or 64 CPU monsters. An hour or two later, they go back to the 2 cpu servers again. In a non-cloud shop, we would have to size our hardware for that maximum batch size.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by jjav on Friday May 05, 2023 @12:26AM (#35825213)
> as they also explained a benefit of cloud (and therefore using AWS)

Although in this specific case, being a team at AWS, they are using their own company data centers, so it's essentially on-prem to them.

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by re-thc on Thursday May 04, 2023 @07:47AM (#35813919)
> Maybe the next step of that process will be pushing their clients off of AWS and telling them to just host on prem.

And then charging them to use AWS anywhere and outpost!