发送请求时,Cloud Functions是否使用相同的IP [英] Do Cloud Functions use the same IP when sending requests

查看:48
本文介绍了发送请求时,Cloud Functions是否使用相同的IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在使用Express.js在Cloud Functions上运行Web服务API.我想知道云功能是否每次都使用相同的IP地址发送请求.

So I am running an web service API on Cloud Functions with express.js. I am wondering if cloud functions use the same IP address to send requests every time.

我的用户正在从CF发送请求并获得响应.每次用户发送请求时,CF都会向第三方API发送请求以获取一些数据.我希望能够限制CF每分钟发送到第三方API的请求数.第三方API有IP限制,因此我试图发送来自不同IP的请求.触发功能时,CF是否使用相同的IP?或其他IP地址?

My users are sending requests and getting responses from the CFs. Every time a user sends a request, CF sends a request to third party API to get some data. I want to be able to limit the number of requests sent to the third party API each minute by the CFs. The third party API has an IP limitation, so Im trying to send requests from different IPs. Do CFs use the same IP when a function is triggered? or different IP addresses?

推荐答案

不能保证Cloud Functions的请求似乎来自哪个IP地址.您不应该依赖任何明显的IP,因为随着系统升级和扩展,它们可能会随着时间而变化.

There are no guarantees about which IP address that requests from Cloud Functions may appear to come from. You should not depend on any apparent IPs, as they may change over time as the system upgrades and scales.

这篇关于发送请求时,Cloud Functions是否使用相同的IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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