即使数据库不在使用中,Firebase数据库带宽使用率也会迅速增长 [英] Firebase database bandwidth usage growing rapidly even when when the database is not in use

查看:129
本文介绍了即使数据库不在使用中,Firebase数据库带宽使用率也会迅速增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:经过9个月的来回电子邮件(超过40封电子邮件),谷歌已经承认,他们发现了一些可能造成高带宽使用的错误,但带宽使用率仍然太高。解决这个问题似乎并不是Google / Firebase的优先考虑事项(他们花了1.5个月的时间来回复最后一封电子邮件)。根据类似的投诉,例如: https://news.ycombinator.com/item?id=14356409 ,以及其他许多团队/开发人员,希望情况会有所改善。






<我刚刚开始Firebase项目,并没有从任何客户端访问数据库。我只在数据库中创建了一个微小的测试键 - 值对(使用控制台),它使用了23B的数据存储。令人惊讶的是,控制台显示我已经使用了215.9 KB(包括当我没有触及Firebase的时候)。即使我没有使用Firebase,或者甚至刷新控制台中的数据标签,这个数字仍然每小时都在增长!



以下是控制台带宽使用情况图表的屏幕截图:
Firebase控制台带宽使用情况截图 $ b其他人似乎也遇到同样的问题,但Firebase / Google没有回应。这是怎么回事?任何帮助将不胜感激。

解决方案

使用图需要时间来更新。您可能会看到从几分钟到几个小时前的带宽。

另外,这让我想起了旧的Google Analytics引荐来源问题,Firebase的默认规则像这样:

  .read = true; 
.write如果auth!= null;

这意味着任何人都可以从数据库中读取数据,任何经过身份验证(甚至是匿名)的人都可以写入它。这可能是因为它是一个支持json的noSQL数据库,它可能只是与Google Analytics(分析)引荐垃圾邮件相当的抓取工具。


Update: After 9 months of back-and-forth emails (over 40 emails), Google has acknowledged that they have found some bugs that may be responsible for high bandwidth usage, but bandwidth usage is still too high. Resolving this issue does no appear to be a priority for Google/Firebase (it took them 1.5 months to respond to the last email). In light of similar complaints such as: https://news.ycombinator.com/item?id=14356409, and many others, across a wide range of teams/developers, hopefully the situation will improve some day.


I'm just starting a Firebase project and have not accessed the database from any client. I have only created a single tiny test key-value pair in the database (using the console), which uses 23 B of data storage. Surprisingly, the console shows that I have used 215.9 KB (including when I was not touching Firebase at all). This number continues to grow every hour even though I am not using Firebase or even refreshing the data tab in the console!

Here is a screenshot of the console bandwidth usage chart: Firebase console bandwidth usage screenshot

Others appear to be having the same problem, but there has been no response from Firebase/Google. What's going on? Any help would be greatly appreciated.

解决方案

The usage chart takes time to update. You may be seeing bandwidth from a few minutes to a few hours ago.

Also, this reminds me of the old Google Analytics referrer issue, the default rules for firebase look something like this:

.read = true;
.write if auth != null; 

This means that anyone anywhere can read from your database and that anyone authenticated(even anonymously) can write to it. It is possible since it is a noSQL database with json support that it is probably just crawlers which are the equivalent of Google Analytics referral spam.

这篇关于即使数据库不在使用中,Firebase数据库带宽使用率也会迅速增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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