Remix.run Logo
▲ jerf 5 hours ago

It's a harder problem than it looks to strictly enforce it at scale. If you try to enforce it in a centralized system, you've got one system constantly saying "yes they still have money for that" in response to an absolute torrent of billing events. If you bulk those events that bulking creates latency where billing overages could occur. If the systems cache the value, the caching creates latency where overages could occur. If you push the enforcement to the individual services, now you have to be constantly updating those services with the amount of remaining money somehow.

I'm not saying it's impossible, I'm just saying it's harder than it looks. Everything is harder than it looks at cloud scale.

What I can say is that if you want a simple policy that would encourage the cloud providers to cut through the difficult and at least get some bounds on the problem, pass a law that requires them to offer the user the ability to set a maximum cost and then make it illegal for the services to collect any more than that cost in a month. In some sense that could probably still be argued in court, no matter what terms in the EULA Google or the other cloud providers try to throw at us, there's an irreducible element of fraud here when I say to one of these providers "Hey, I don't want to spend more than $1000 this month", and they come back with a bill for $100,000. I told them what my limit was, using their own system for doing so, why is it my problem that they can just then give me service I have explicitly disclaimed and then consider my contractually obligated to pay for it? The entire point of this limit is basically to give me false and fraudulent comfort that they won't charge me stupid amounts of money.

Pass that law and suddenly the clouds will indeed be a lot better at cutting you off rather than charging you extra. There will still be some slop, and the law will need to address fraudulent abuse of this by a customer ("set limit to $10, use services slowly up to $9.90, suddenly spin up vast resources and get as much use as possible before the billing system catches up", though it's not hard to think of ways of countering that at a technical level as well that will be good enough as well), but I think it can be worked through.

▲pu_pe 4 hours ago | parent | next [-]

If it's so hard, how can AWS and Azure offer a cap?

▲jerf 3 hours ago | parent [-]

By doing the hard work.

There's a reason I suggested a legal fix to kick Google in the ass to get them to do the hard work. It's not impossible. It's just hard.

But it is harder that people think. I've been programming for 30 years now, and I still can get blindsided by how hard things are when you really get down into the details. AIs are perhaps making this harder for people to learn as they are really good at glossing over the details and reinforcing the ways people think problems are simpler than they really are. Nothing is easy at this scale, and for all the apparent size of the cloud providers it's pretty clear that they are quite often just barely holding things together and not generously endowed with the infinite resources people often think they are. The cloud providers have all sorts of reasons they'd really, really rather offload this problem on to you, above and beyond just trying to extract the money from you, but also things like the opportunity cost of the hot new flashy service they could be using that time to implement to make money instead of writing code to help people not use their services.

▲Forgeties79 38 minutes ago | parent [-]

I totally get that the problem isn’t necessarily simple. But they deployed similar systems when it’s in their interest and never in our own. So yes I agree with you. They need to be forced to do it. But unfortunately in this current administration, and frankly with just the trend over the last 40 years in the US, businesses are arguably less restricted than ever. Nobody wants to twist their arms

▲r_lee 4 hours ago | parent | prev [-]

it's not a hard problem, it's simply that Google doesn't want to introduce, maybe partly due to the fact that they don't want to clean up after orgs that have their prod go down because they forgot to adjust their budgets

but for e.g. individual accounts and so on, there's 0 reason to not have it, so it mostly comes down to laziness/incompetence