0

I was wondering where the best place to store a lot of static data in Firebase is. By static data I mean info such as city name, city information, city coordinates. I would only like to store user information in the Real-time Database, because it is more cost effective for me.

Should I create a json file and put it in storage, or should I host it right in the Firebase Hosting? I will need to access this data quite often. Please Help!

Michael Jones
  • 2,222
  • 18
  • 32
  • Storage would give you some control over access to the static data: https://firebase.google.com/docs/storage/security/ – cartant Sep 02 '16 at 23:17
  • 1
    If you generate the file yourself, you'll probably want to go with Firebase Hosting as it has a CDN. If users create the files (just never modify them), you should go with Firebase Storage. It doesn't have a CDN, but has an API and is (slightly cheaper). See http://stackoverflow.com/questions/37482907/firebase-differences-between-realtime-database-and-file-storage – Frank van Puffelen Sep 03 '16 at 00:42
  • @FrankvanPuffelen so would it be possible to store a `json` file in the Hosting? – Michael Jones Sep 03 '16 at 15:40
  • Sure. Just try it and report back if you have a problem. – Frank van Puffelen Sep 03 '16 at 16:31

0 Answers0