Is there a hard spending cap on Firebase once you leave the free tier? Budget alerts do not stop anything Cap it
About to move off the no-cost plan because I keep hitting the daily Firestore quota. The thing that has stopped me for two months is the asymmetry: a bug on the free tier costs me an outage, and the same bug on a paid plan costs me money, and I do not know the upper bound on the second one.
What the billing docs say, as far as I can tell: budgets and budget alerts do not cap usage or charges, they notify. And there can be a delay between incurring the cost and the alert arriving, up to a few days depending on the service. The second half is the part that actually worries me, because a notification that arrives on Thursday about Monday is not a control.
So: is there a real hard cap anywhere, and if not, what do people actually run instead? Solo project, no team, and I need something that works while I am asleep rather than something I have to be watching.
@pgpolicy_nadia · 2h ago · 2 replies
There is no hard cap, and it is deliberate rather than an oversight. The stated reasoning in the docs is that they cannot distinguish a runaway loop from unexpected growth, so they do not turn your services off on your behalf.
The documented pattern is to wire the budget notification to Pub/Sub and run a function that disables billing on the project when a threshold is crossed. That is a real stop, not a notification.
Understand the tradeoff before you build it. It takes the project down. For a side project that is exactly right, an outage is much better than an invoice you cannot pay. For anything with customers it is not, and you want throttling at the application layer instead. Also note it inherits the same reporting delay as the alert, so it is a backstop, not a tripwire.
Reply
Report
@two_vcpu_club · 2h ago
And fire it once on purpose, in a throwaway project, before you rely on it. A kill switch you have never tested is a hope with a deployment attached. Ours had a permissions problem that we would only ever have discovered on the worst possible day.
Reply
Report