How to Stop firebase services in case of reaching the free limits of Blaze's plan

2,073 views
Skip to first unread message

len...@gmail.com

unread,
Aug 28, 2018, 10:14:04 AM8/28/18
to Firebase Google Group
Hello,

I'm a real newbie with Firebase and really enjoy the overall approach. 
I'm just super scared, as jr dev, to create a crazy loop in any of the code I'll be writing and result in exploding the plan free limits.

Is there a way to not only be notified but automatically shut down the services in case I reach a specific limit ?

Thanks,
Naex

Samuel Stern

unread,
Aug 28, 2018, 12:27:20 PM8/28/18
to fireba...@googlegroups.com
Hi Naex,

Which services, specifically, are you worried about?  Some may have billing controls through the Google Cloud console that you could use.  However in general you're on the free plan and you go over the limits it will do exactly what you want: the service will stop working.  You will not be charged for usage unless you're on one of the two paid plans (Flame or Blaze).  Only the Blaze plan (pay as you go) carries the risk of uncapped spending due to a programming error.

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0f82e93b-aefd-4d57-bc1f-323754419c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex C.

unread,
Aug 29, 2018, 11:02:35 AM8/29/18
to fireba...@googlegroups.com
Thank you Sam !

I'm using Firebase Cloud Functions, Storage , Hosting and Firestore at the moment. And as I'm trying to make API calls from Cloud functions, I realised it could only be done with a paid plan. And what I am afraid is if I switch to Flame or Blaze during my testing, I'll get a huge bill for a programatic mistake.

Best would be to be able to make API calls from the free tier if possible. If not, ensuring any services running above the free tier quota will stop and not be charged for additional usage.

I understand it's not really on Firebase's best interest to do so, but would make it more confident for a dev test period. I clearly can't offer 1K of service at that stage...

Thanks !

Samuel Stern

unread,
Aug 30, 2018, 12:07:59 PM8/30/18
to fireba...@googlegroups.com
Hi Alex,

Thanks for the feedback! In an ideal world we would offer external API calls from the free plan, but you can probably imagine how that's a vector for abuse.  In the end you will need to use either the Flame or Blaze plan to complete your testing.  The Flame plan means you'll spend exactly $25, which should relieve your concerns about a possible "huge bill".

Also since a Firebase project is a Google Cloud project, you should also be able to set up some billing alerts:

This will at least tell you if you're headed the wrong direction.

- Sam

Reply all
Reply to author
Forward
0 new messages