Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Cloud Functions use the same IP when sending requests

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?

like image 471
Mr. Blockchain Avatar asked Apr 12 '26 07:04

Mr. Blockchain


1 Answers

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.

like image 112
Doug Stevenson Avatar answered May 06 '26 05:05

Doug Stevenson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!