News for hackers. Stuff that matters.
Re:How we spent $30k in Firebase in less than 72 hours by everdev on Wednesday August 01, 2018 @08:35PM (#17668349)
Even with a cap, a rogue line or a legitimate surge in traffic could shut down your app.

It's endless bill monitoring and budget approval.

I'll stick to a flat rate DO droplet.

Re:How we spent $30k in Firebase in less than 72 hours by marktangotango on Wednesday August 01, 2018 @09:15PM (#17668529)
What’s the difference between a cap limiting your traffic and server cpu maxed out, or db connection pool or ... limiting your traffic?
Re:How we spent $30k in Firebase in less than 72 hours by Something1234 on Wednesday August 01, 2018 @09:33PM (#17668616)
One bankrupts you, the other just has a minor hiccup with a few lost customers that day.
Re:How we spent $30k in Firebase in less than 72 hours by ithkuil on Wednesday August 01, 2018 @09:55PM (#17668699)
a (cost) cap is a feature designed to prevent you from going bankrupt but at the expense of not recovering from the surge after you deplete the cap until the end of the cap granularity.

So, if the cost cap is defined as $n per day, once you deplete it you'll be down for the rest of the day (or if you take some manual action to increase the cap, if the cloud provider supports it).

This problem is a function of the granularity. Imagine a system that let you say:

"I want to spend max $n per second with a extra burst of $m per day/week"

You adjust your "$n" to match the throughput you'd have if you had a fixed size "pay what you provision" system and reserve $m for lucky events as landing on HN.

The amount of planning you have to do is similar to the traditional resource allocation, but with the benefit of paying less than provisioned if you're not getting all that traffic.

Re:How we spent $30k in Firebase in less than 72 hours by vbezhenar on Wednesday August 01, 2018 @11:52PM (#17669125)
Is it possible to make a similar approach in cloud? Something like "if traffic goes up, scale up until $5/month and then don't scale further, let it be slow (or even better throw errors)". Would be the best of both worlds.
Re:How we spent $30k in Firebase in less than 72 hours by Xorlev on Thursday August 02, 2018 @12:12AM (#17669185)
For services that are pay per request, this is effectively a hard cap.

For more capacity based services, sure, but it's more likely to be down than just slow. When systems are run at their limit they rarely operate the way they did with a little less traffic.

Re:How we spent $30k in Firebase in less than 72 hours by heavenlyblue on Wednesday August 01, 2018 @08:55PM (#17668440)
Well, a rogue line could potentially as much shut down your app hosted in DO.
Re:How we spent $30k in Firebase in less than 72 hours by tgsovlerkhgsel on Wednesday August 01, 2018 @11:11PM (#17669002)
That's the thing though: If you're a big company, your site being down is much scarier than a 100x bill.

When you're an individual, the potential for a $10k bill is much scarier than your hobby project going down.

When you're a small org/startup, the potential for a $75k bill is probably still scarier than your site going down.

Re:How we spent $30k in Firebase in less than 72 hours by heavenlyblue on Saturday August 04, 2018 @04:59PM (#17688405)
Well, then the issue with the Amazon Lambda is not that of it's ability to scale, but that of it's default not to limit your spending.