Firebase:实时数据库和文件存储之间的差异 [英] Firebase : Differences between realtime database and file storage
问题描述
我从这篇文章中了解了实时数据存储和托管存储区别数据存储和托管存储之间的关系?
I learnt about real-time data storage and hosting storage from this post Difference between Data Storage and Hosting Storage?
但我仍然不清楚实时数据库和新引入的文件存储.
But i am still not clear about real time Database and and newly introduced file storage.
有人对此有一些简要的解释吗?
Does anybody have some brief explanation about it ?
提前致谢.
(根据关于重复使用 数据存储和托管存储之间的差异的担忧? 问题解决了什么,我要问的是两件不同的事情,在 google firebase 的情况下,托管存储和文件存储是不同的)
(As per the concern about duplicated with Difference between Data Storage and Hosting Storage? what the problem solves and what i am asking are two different things and hosting storage and file storage are different in case of google firebase )
推荐答案
Firebase 现在提供以下位置来存储您的数据:
Firebase now offers these places to store your data:
存储数据的最佳位置取决于您想要存储的数据类型以及您想要使用它的方式.
The best place to store your data, depends on the type of data you want to store and the way you want to consume it.
Firebase 文档对此进行了说明:
Firebase 实时数据库存储 JSON 应用数据,例如游戏状态或聊天消息,并在所有连接的设备之间即时同步更改.
The Firebase Realtime Database stores JSON application data, like game state or chat messages, and synchronizes changes instantly across all connected devices.
Firebase 远程配置存储开发者指定的键值对,无需用户下载更新即可更改应用的行为和外观.
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 托管托管您网站的 HTML、CSS 和 JavaScript,以及其他开发者提供的资产,例如图形、字体和图标.
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 存储图像、视频和音频等文件以及其他用户生成的内容.
Firebase Storage stores files such as images, videos, and audio as well as other user-generated content.
关于在 Cloud Firestore 和 Firebase 实时数据库之间进行选择,Firebase 文档说:
On choosing between Cloud Firestore and the Firebase Realtime Database, the Firebase documentation says:
Firebase 提供两种基于云的、客户端可访问的数据库解决方案,支持实时数据同步:
Firebase offers two cloud-based, client-accessible database solutions that support realtime data syncing:
实时数据库是 Firebase 的原始数据库.对于需要跨客户端实时同步状态的移动应用,这是一种高效、低延迟的解决方案.
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 是 Firebase 用于移动应用开发的新旗舰数据库.它通过一个新的、更直观的数据模型改进了实时数据库的成功.Cloud Firestore 还具有比实时数据库更丰富、更快的查询和更好的扩展性.
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.
这篇关于Firebase:实时数据库和文件存储之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!