我想要一些有关实时监听器定价的解释。
Firestore 文档 ( https://firebase.google.com/docs/firestore/pricing ) 中指出:
if the listener is disconnected for more than 30 minutes (for example, if the user goes offline), you will be charged for reads as if you had issued a brand-new query.
如果没有更改(既不是本地的,也不是远程的)怎么办? 30 分钟后重新连接时,是否仍需要支付阅读费用?
在这种情况下,与 Firebase 实时数据库相比,这似乎是一个定价负担,如果您启用离线缓存,监听器不会下载任何新数据,因此您无需付费。
最佳答案
根据this ,您无需为本地缓存完成的读取付费。
但是,您仍然需要为查询本身的 1 次读取付费(无论结果如何)。
关于firebase - 即使没有更改,Cloud Firestore : on realtime listeners, 也会收取读取费用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46883703/