Do Cloud Functions use the same IP when sending requests

邮差的信 提交于 2020-01-30 11:25:27

问题


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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/51045367/do-cloud-functions-use-the-same-ip-when-sending-requests

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