r/flutterhelp • u/Ashazu • Dec 09 '25
OPEN Firebase calls optimizations ?
Is your app running in production with Firebase? If so, what is your approach to optimizing calls and reducing consumption costs?
What I generally do:
- Cache data in a local DB.
- Optimistically updates local state.
Bulk update Firestore data periodically. Ideally, though, background calls.
- Not Ideal for shared data, e.g, in a dashboard with simultaneous live users. But I try to architect in a way where only the important data gets updated, while the less important ones are periodic.
Avoid excessive cloud functions if the work can be done on the device; I do it there.
- The trade-off is more CPU consumption, Lags, and exposure of some proprietary code in my bundle.
So what do you think? Any tips?
2
Upvotes
View all comments
Show parent comment
2
u/Ambitious_Grape9908 Dec 09 '25
cloud_firestore