Firebase:实时数据库和文件存储之间的区别

Firebase : Differences between realtime database and file storage

通过这篇学习了实时数据存储和托管存储post

但是我对实时数据库和新引入的文件存储还不是很清楚。

有人能简单解释一下吗?

提前致谢。

(根据与 重复的问题,问题解决的问题和我要问的是两件不同的事情,在 google firebase 的情况下,托管存储和文件存储是不同的)

Firebase 现在提供以下位置来存储您的数据:

存储数据的最佳位置取决于要存储的数据类型和使用数据的方式。

Firebase documentation 是这样说的:

  • The Firebase Realtime Database stores JSON application data, like game state or chat messages, and synchronizes changes instantly across all connected devices.

  • Firebase Remote Config stores developer-specified key-value pairs to change the behavior and appearance of your app without requiring users to download an update.

  • Firebase Hosting hosts the HTML, CSS, and JavaScript for your website as well as other developer-provided assets like graphics, fonts, and icons.

  • Firebase Storage stores files such as images, videos, and audio as well as other user-generated content.

在 Cloud Firestore 和 Firebase 实时数据库之间进行选择时,Firebase documentation says:

Firebase offers two cloud-based, client-accessible database solutions that support realtime data syncing:

Realtime Database is Firebase's original database. It's an efficient, low-latency solution for mobile apps that require synced states across clients in realtime.

Cloud Firestore is Firebase's new flagship database for mobile app development. It improves on the successes of the Realtime Database with a new, more intuitive data model. Cloud Firestore also features richer, faster queries and scales better than the Realtime Database.

*实时数据库只存储json格式的数据,专门用于数据并发同步的app,如ola app(用户位置),sensex(Nifty ) 数据不持久的应用程序。

*Firebase Storage 只是存储内存之类的数据 card.It 专门用于存储应用程序的后端数据。