Firebase云功能是否涉及实时数据库和Firestore的成本? [英] Do firebase cloud functions involve costs for realtime db and firestore?

本文介绍了Firebase云功能是否涉及实时数据库和Firestore的成本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当更新Firestore文档时,我都会运行云功能.该函数读取文档,获取用户ID,然后从实时数据库获取用户令牌ID,并发送通知.因此,我们在这里阅读了1个文档,并获得了与实时db读取相关的一些下载开销.我的问题是:

I am running a cloud function whenever a firestore document is updated. The function reads the document, gets the user IDs and then takes the user token IDs from the realtime db and sends notification. So we have 1 document read here and some download overhead associated with the reads on the realtime db. My question is :

  1. 如果云功能读取了实时数据库的节点,那么下载(用于在实时数据库上读取)是否需要付费?

  1. If cloud functions reads a node of the realtime db, will the downloads (for the read on the realtime db) be billable?

如果云功能读取了firestore的文档,则该文档会计费吗?

If cloud functions reads a document of firestore, will the document read be billable?

推荐答案

根据下面的链接,即使在评估安全规则的情况下,所有读取和写入也是可计费的(或计入读取计数),因此Cloud函数也应是可结算的".

According to the links below, all reads and writes are billable (or count toward reading count), even in cases of evaluating security rules, so Cloud functions should also be "billable".

  1. 根据了解实时数据库计费

进出数据库的所有流量,包括安全规则拒绝的操作,都会产生可计费的费用.

All traffic to and from your database, including operations denied by security rules, leads to billable costs.

  • 根据 Cloud Firestore定价

    您需要为使用Cloud Firestore执行的每个文档读取,写入和删除付费.

    You are charged for each document read, write, and delete that you perform with Cloud Firestore.

  • 这篇关于Firebase云功能是否涉及实时数据库和Firestore的成本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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