Live data from Hacker News

How not to get a $30k bill from Firebase

medium.com

11–20 of 114 posts

Re: How not to get a $30k bill from Firebase

#14
post #6

Offtopic I need to register with medium now to actually read the article?

You can press the X to close the “Pardon the interruption” overlay that asks you to sign in.

I also seem to have to pay 5$ a month now, I can get past it with some element hiding and cookie clearing but seems like medium is not the ideal solution anymore

Re: How not to get a $30k bill from Firebase

#15
post #9
post #2

TLDR: The huge bill was a result of an improper way the application was coded. They contacted Google/Firebase who were gracious enough to waive off the bill.

Not the first, and surely not the last time we read about this kind of stuff here. And one of the reasons I prefer either running web things on my own server(s) as much as possible. And can't you set a charge limit on Firebase?

You can, cloudwatch can shut things down on reaching threshold or scale-down.

With cloud you really have to optimize your code/architecture as you pay for what you use.

With your own servers that is not an issue unless you overload them, then you can have an outage.

EDIT: I thought Firebase is amazon for some reason, it is not. So in general Google panel doesn't have that functionality (from my experience with it), they have billing alerts but I never saw anything that would shut off things on reaching that alert.

You can limit by API requests usually but not by credit amount so if you use multitude of API's it can get tricky and they likely didn't limit anything.

Re: How not to get a $30k bill from Firebase

#16
post #5
post #4

Earlier quoted context omitted.

Where did you see that? I don't see anything about the bill being waived in the post..

https://hackernoon.com/how-we-spent-30k-usd-in-firebase-in-l...

Their report reads like they had it coming big time:

> The app was running, all the supporters were able to support and the comments on social networks were that the app made it really simple to do support. We were very proud :)

> We didn’t want to release any new feature with that many users on the site, so we decided to merge a version with Angular V.6 […]. The site started to load slower, for some users it took them more than 30 seconds to load the page. That was weird. Our team was not comfortable with that and we couldn’t understand what was causing it and now we had our code with a completly new version of Angular, and probably many other bugs in production.

Am I reading this right: Their site was running well. They didn’t want to interrupt it by adding new features (potential bugs) so they casually update the framework and push the new version of their website to production hastily? And instead of rolling back the release they double down and optimize their code without knowing the source of the slowdown. Like WTF? Apparently they hadn’t even opened the browser’s network console to check if/what requests cause the slowdown. How did these people get $25K grant money?

Re: How not to get a $30k bill from Firebase

#18
post #9

Earlier quoted context omitted.

Not the first, and surely not the last time we read about this kind of stuff here. And one of the reasons I prefer either running web things on my own server(s) as much as possible. And can't you set a charge limit on Firebase?

You can, cloudwatch can shut things down on reaching threshold or scale-down. With cloud you really have to optimize your code/architecture as you pay for what you use. With your own servers that is not an issue unless you overload them, then you can have an outage. EDIT: I thought Firebase is amazon for some reason, it is not. So in general Google panel doesn't have that functionality (from my experience with it), t…

[deleted]

Re: How not to get a $30k bill from Firebase

#19
post #7
post #6

Offtopic I need to register with medium now to actually read the article?

It looks like you get 1 month "free". Open the article in incognito mode and it's available without registration.

> Get one more story in your member preview when you sign up. It’s free.

Oh wow, one free story for logging in! Such generosity of content other people wrote for free. Why did we all leave LiveJournal again?

Post reply on HN