Firebase:实时数据库与文件存储的区别 [英] Firebase : Differences between realtime database and file storage

查看:650
本文介绍了Firebase:实时数据库与文件存储的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这篇文章中了解到了实时数据存储和托管存储的情况。差异在数据存储和主机存储之间?
但是我还不清楚实时数据库和新引入的文件存储。



有人对此有一些简单的解释吗?

感谢提前。

(根据与数据存储和托管存储之间的差异? / a>这个问题解决了什么,我问的是两个不同的东西,托管存储和文件存储在谷歌firebase的情况下是不同的)

解决方案 Firebase现在提供这些地方来存储您的数据: com / docs / database /rel =noreferrer>实时数据库 远程配置
  • 主机

  • 存储
  • li>
  • Cloud Firestore



  • 存储数据的最佳位置取决于您要存储的数据类型以及要使用的数据类型。



    Firebase文档对此进行了说明:

    Firebase实时数据库存储JSON应用程序数据(如游戏状态或聊天消息),并在所有应用程序中立即同步更改连接的设备。


    > Firebase托管为您的网站托管HTML,CSS和JavaScript,以及其他开发人员提供的资产,如图形,字体和图标。 Firebase存储存储诸如图像,视频和音频的文件以及其他用户生成的内容。
    b

    在Cloud Firestore和Firebase实时数据库之间进行选择时, Firebase文档中提到
    $ b


    Firebase提供了两个基于云端的客户端可访问数据库解决方案,可支持实时数据同步:



    实时数据库是Firebase的原始数据库。这是一个针对移动应用程序的高效低延迟解决方案,可以实时跨客户端同步状态。
    $ b Cloud Firestore 是Firebase的新旗舰数据库,移动应用开发。它利用新的更直观的数据模型改进了实时数据库的成功。 Cloud Firestore还拥有比Realtime Database更丰富,更快速的查询和扩展功能。



    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 ?

    Thanks in advance .

    (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 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.

    The Firebase documentation says this about it:

    • 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.

    On choosing between Cloud Firestore and the Firebase Realtime Database, the 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.

    这篇关于Firebase:实时数据库与文件存储的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆