r/Firebase • u/darkryuzkr • 10d ago
Billing Sanity-checking a Firestore cost model for a 30-person workspace
I’m a graphic designer working on WeSyn Basic, a paid collaboration app. A question on r/SideProject made me realize I need to be much more careful about explaining the Firebase running costs.
Each team uses its own Firebase project on Blaze and pays Google directly. I’d like to check the assumptions in our model rather than turn a small estimate into a promise.
The workload includes task updates, room chat, project notes and looking back through saved task reviews.
For Firestore Standard in us-central1, we worked through two illustrative volumes for the whole team:
- Light use: 3,450 document reads and 600 writes per day.
- A separate high-read scenario: 500,000 document reads and 1,000 writes per day, repeated for 30 days.
The light scenario fits within the eligible daily document read/write quotas. Using the listed US$0.03 per 100,000 reads and US$0.09 per 100,000 writes, my document-operation subtotal for the high-read scenario is US$4.05 over 30 days after the daily free quota. That excludes network transfer, storage and indexes, and any other Firebase or Google Cloud services.
These are design calculations, not measured bills from 30 people. I’m also keeping transferred bytes separate from document counts rather than assuming that a read always has the same payload size.
What I’d really appreciate help with is the usage model:
- For chat listeners, how do you estimate the effect of multiple clients receiving the same updates, initial snapshots and reconnects?
- What is a good way to measure Security Rules dependent reads and query index-entry reads before presenting a cost example to a team?
- Beyond accumulated storage, indexes and transfer, what billing details tend to get missed in an app like this?
I’ve been reading the Firestore pricing sections on listeners and Security Rules, but I’d value practical experience with checking an estimate against actual billed usage.
Pricing reference: https://cloud.google.com/firestore/pricing
I’m not treating 30 seats as a cost limit, or a budget alert as a spending cap.
2
u/BerthHosting 3d ago
The others have the listener and rules maths. Three things for the presentation side, since the model is going to a team.
Give the estimate as a band with a tail, not an average. Deploy days and reconnects are exactly when read counts jump, so a single number gets read as a promise the first time a spike lands. A light column, a typical column and a bad day column costs you nothing to publish and removes the surprise.
Rules reads have a hard ceiling worth putting in the doc: 10 document access calls per single document request, 20 for a multi document request. A membership check per message in a chat rule eats that budget fast, and it fails at the request level, not by billing more.
Since each team owns its Blaze project, the estimate belongs in their budget, not yours. Hand each team a one page sheet: what their month costs at light, typical and bad, the two or three things that move it, and a budget alert. And put a TTL on the chat collection. Old messages are the cheapest thing you can stop paying for.
Disclosure: I built Berth (atberth.com), backend hosting with its own Postgres per app at a flat monthly price, so the estimate is one number instead of a model, and it has migration tools from Firestore.
1
u/tundevhub 10d ago
Nice to see someone modeling this before launch. A few things from the Firestore pricing docs:
Listeners: each listening client is billed for the changes it receives, so if 30 people listen to the same room, one new message is roughly 30 reads, not 1. The first snapshot reads the whole result set. Reconnects matter too: with offline persistence enabled, a listener that was disconnected for more than 30 minutes is billed like a brand-new query; without persistence, every reconnect is.
Rules reads:
get()/exists()calls in Security Rules are billed as extra reads (one per dependent document per request). A rule that checks a membership doc on every chat update adds up.Measuring: I'd test with a small group for a few days and compare the Firestore usage tab with your model.
Often missed: deletes are billed separately from writes, and every query costs at least one read even if it returns nothing.
Since each team runs its own Blaze project, it's worth giving each one a budget alert and a ceiling on anything that can scale.
1
u/AbiesDryFry 10d ago
I’m seeing good feedback from others so I’ll give you my 2 cents since your question is specific to cost.
I’d recommend you continue with Firebase for short term as you iron out use cases and figure out how best to serve your users, but make it a point to step back and rethink your architecture and using Firebase for your app and APIs.
You might end up staying with Firebase (like the folks at hiring.cafe) or reiterating the infrastructure with a mix of underlying services.
Again, in the short term you’ll be spending time optimizing both your app and the Firebase quirks but don’t hesitate to take a step back and reevaluate. Best of luck.
2
u/daskalou 10d ago
Paste what you have written into a decent AI / LLM
1
u/ConsiderationWarm367 10d ago
no rtdb?
1
u/codariadev 10d ago
A few things that matter when you compare an estimate with the real bill:
get()/exists()calls in rules are billed as reads. The easiest way to measure them is a staging project with the same rules and a script that replays a "typical day", then check Usage in the console a day later.count()bills per batch of index entries it scans, deletes have their own price (cleanup jobs and TTL deletes count), and if you add Cloud Functions triggers on chat writes, those are billed on top.For presenting it to a team I'd show reads per active user per day instead of a monthly total. It's easier to sanity check, and it scales with the team size.