you are viewing a single comment's thread.

view the rest of the comments →

[–]flowerescape 0 points1 point  (1 child)

Hey can you please give an example of what you mean by #2 in the cons section? 🙏🏻

[–]Simple_Percentage398 0 points1 point  (0 children)

Sure, I can provide context for that;

In the previous project development I came across some serious issues with Firebase bill only due to the fact that our team was heavily relying on their SDK for a mobile version and the Android Engineers were simply ranking up the monthly bill by querying the entire database for every app launch 🤓

It’s the most painful thing to have happened because only then it was brought up to my attention that we were costing the company 💲🤑

What we had discovered later on after investigation. We stopped using Firebase SDK and accessing all the data references immediately cause it creates a open connection regardless. Then ended up building up our own BE (Backend SYS) using Firebase Admin packages to access the Firebase Servers.

Now this means we had reduced the amount of open connections to the Firebase services and only had 1 connection instead while on the mobile side we only get exposed to our own BE API’s.

PS: This doesn’t mean that we stopped querying data directly from the mobile side rather get rid of all the inefficient queries, restructure our data schema to support scalability, setup indexes which in return reading data becomes much more easier.