Android: using Firebase to store static data

Viewed 1228

I'm developing an android application that will allow users to find informations about the streets in my city. They will be able to register and save some streets as "favourites".

My question is, how can I use Firebase to store the streets data considering that they won't change overtime?

2 Answers

That depends mostly on how you want to read the data.

If you always load all of the street data, then you might as well store it as a file on Firebase Hosting. That'll be a lot cheaper, and perform better (since the data is cached on a CDN).

If the app loads parts of the data, but it's not very dynamic, you could split the data into multiple files and still store those on Firebase Hosting.

If users sometimes update the data, but it's still hardly queries by the apps, consider storing it in Cloud Storage through the Firebase SDK. The files are available to all of your users that way.

If you want advanced querying of the data, consider storing it in the Firebase Realtime Database or in Cloud Firestore.

Related