Firebase 的 Cloud Functions 免费套餐中的“无出站网络"到底是什么意思? [英] What exactly mean “No Outbound Networking” in free tier on Cloud Functions for Firebase?

查看:18
本文介绍了Firebase 的 Cloud Functions 免费套餐中的“无出站网络"到底是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Google Firebase 定价 (https://firebase.google.com/pricing/) 表中状态:

In Google Firebase pricing (https://firebase.google.com/pricing/) table states:

Spark 计划仅允许向 Google 拥有的出站网络请求服务.

The Spark plan only allows outbound network requests to Google-owned services.

是否意味着网页浏览器(客户端)页面中的JS函数无法调用Firebase函数并在FREE TIER中检索数据?

Does it mean that JS function in web browser (client) page can't call Firebase function and retrieve data in FREE TIER?

推荐答案

firebaser here

很好,应该澄清那段文档.

Good catch, that piece of documentation probably should be clarified.

只要您在允许的配额范围内,就允许入站请求.这样您的应用就可以调用 Cloud Function.

Inbound requests are allowed, as long as you're within your allowed quota. So your app can call a Cloud Function.

免费计划中的项目的出站请求仅允许向 Google 拥有的服务发送.因此,您的 Cloud Function 代码只能调用 Google 拥有的 Web API,除非它采用付费计划.

Outbound requests for projects on the free plan are only allowed to Google-owned services. So your Cloud Function code can only call google owned web APIs, unless it's on a paid plan.

更新:以上内容适用于 Node.js 运行时(最高为 v8).从 Node.js 10 及更高版本开始,您的 Firebase 项目需要采用付费计划才能使用 Cloud Functions.有关这方面的完整详细信息,请参阅 Firebase 云函数定价常见问题解答.

Update: the above applies up to Node.js runtimes up to v8. From Node.js 10 and upwards your Firebase project needs to be on a paid plan to be able to use Cloud Functions. For full details on this, see the Firebase FAQ on Cloud Functions pricing.

这篇关于Firebase 的 Cloud Functions 免费套餐中的“无出站网络"到底是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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