-
Notifications
You must be signed in to change notification settings - Fork 0
Firebase Hosting
ThomasJon196 edited this page Nov 2, 2022
·
13 revisions
-
Build scalable applications in the cloud.
-
Realtime database: Seamless synchronization between data collection and Frontend
The main benefit of the realtime database is that your data is synchronized across all of your clients. In practice, this means that we have to deviate a bit from the initial conceptional model of our React database as a simple JSON. While setting a property is similar, you don't simply get a value with the property. Instead, you subscribe to a channel for changes to that property. With that in mind, you design a Firebase client differently than you would with a traditional REST API.
Services include:
- Firebase Authentication
- Straight forward authentication with google account. Example
- Cloud Firestore
- Creation of data collections. Example
- Cloud Storage
- Cloud Messaging
- Performance Monitoring,
- UI has to react to changes in your database/collections/elements.
- If all you need is to react to the addition/update of items in a collection or object, Firebase is great.
- If you need extensive queries or have complex relational data, Firebase would be a poor choice for your main database.
Requirements:
Node.js is required for firebase:
- Install node.js version > 14.0.0 Tutorial
| Whats the difference between Firestore and Cloud storage on firebase? | Cloud storage: Plain file system. No queries. Optimized for download speed. Firestore: Database used for querying data. Not used for storing binary data, rather actual values. |
| When to use Realtime database? | Use realtime databse when priority is: no advanced querying, synced data, ... |
| When tp use Cloud Storage? | Persistence of large files (5 GB limit per file), files system structure is required, |
| When to use Firestore? | Persistence of tables, 1MB limit per file, Querying |