Firebase - sana028/VueLearningsPoc GitHub Wiki
Firebase=>
-
- why firebase.
- 2.what are the uses of it.
- 3.why we are using it when we have relational database.
- 4.what type of applications we can use it.
index based 👍
low latency 👍
Low latency synchronization refers to the process of coordinating data or activities between multiple systems or components with minimal delay.
Presence
It can be useful to know when a client is online or offline. Firebase Realtime Database can record client connection status and provide updates every time the client's connection state changes.
Cloud Firestore Preferred Realtime Database
Not supported natively. You can build on Realtime Database's support for presence by syncing Cloud Firestore and Realtime Database using Cloud Functions See [Build presence in Cloud Firestore]
(presence).
Cloud Functions with Realtime Database To connect Cloud Firestore to Firebase Realtime Database's native presence feature, use Cloud Functions.
Use Realtime Database to report connection status, then use Cloud Functions to mirror that data into Cloud Firestore
Realibility and performance
Cloud Firestore Preferred | Realtime Database
-- | --
Cloud Firestore is a regional and multi-region solution that scales automatically.A low-latency solution, with typical response times no greater than 30 ms.Houses your data across multiple data centers in distinct regions, ensuring global scalability and strong reliability.Available in regional or multi-regional configurations around the world.Read more about Cloud Firestore performance and reliability characteristics in the Service Level Agreement. | Realtime Database is a regional solution.Available in regional configurations. Databases are limited to zonal availability within a region.Extremely low latency, with typical response times no greater than 10 ms. An ideal option for frequent state-syncing.Read more about Realtime Database performance and reliability characteristics in the Service Level Agreement.
Cloud Firestore Preferred Realtime Database
Cloud Firestore is a regional and multi-region solution that scales automatically.
A low-latency solution, with typical response times no greater than 30 ms.
Houses your data across multiple data centers in distinct regions, ensuring global scalability and strong reliability.
Available in regional or multi-regional configurations around the world.
Read more about Cloud Firestore performance and reliability characteristics in the [Service Level Agreement](https://cloud.google.com/firestore/sla). Realtime Database is a regional solution.
Available in regional configurations. Databases are limited to zonal availability within a region.
Extremely low latency, with typical response times no greater than 10 ms. An ideal option for frequent state-syncing.
Read more about Realtime Database performance and reliability characteristics in the [Service Level Agreement](https://firebase.google.com/terms/service-level-agreement).