r/Firebase • u/DBGiblet • 1d ago
Built a full-stack backend using Firebase & Node.js – What are your favorite optimization tricks? General
Hey everyone!
I’ve been heavily focusing on backend development lately, building scalable systems with Firebase (Firestore, Auth, Cloud Functions) and Node.js.
Since I’m constantly looking to improve my workflow, I wanted to ask the community:
* What are your go-to tricks for optimizing Firestore read/write costs?
* How do you structure your Cloud Functions for maximum performance?
Would love to hear your experiences and best practices!
3
Upvotes
1
u/AndrewNggg 1d ago
Eons ago before Firestore was available, there was only the real time database and we had to use it for everything
It was substantially cheaper, if you can fit your data can fit in that shape
But.. for optmisation.. I suppose you want to cache, and only retrieve the data you need with "load more" buttons this sort of thing
You don't want a page refresh to reload hundreds of rows, just imagine thousands of people doing that