Do firebase cloud functions involve costs for realtime db and firestore?

巧了我就是萌 提交于 2020-07-03 03:57:05

问题


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. If cloud functions reads a node of the realtime db, will the downloads (for the read on the realtime db) be billable?

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


回答1:


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. According to Understand Realtime Database Billing,

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

  2. According to Cloud Firestore Pricing,

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



来源:https://stackoverflow.com/questions/50071848/do-firebase-cloud-functions-involve-costs-for-realtime-db-and-firestore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!