Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly mean “No Outbound Networking” in free tier on Cloud Functions for Firebase?

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

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

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

like image 397
Benny7500 Avatar asked Apr 05 '17 12:04

Benny7500


People also ask

Is Firebase cloud functions free?

Cloud Functions includes a perpetual free tier for invocations to allow you to experiment with the platform at no charge. Note that even for free tier usage, we require a valid billing account.

How does Firebase cloud work?

Cloud Functions for Firebase is a serverless framework that lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. Your JavaScript or TypeScript code is stored in Google's cloud and runs in a managed environment.


2 Answers

firebaser here

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

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

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.

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.

like image 73
Frank van Puffelen Avatar answered Oct 10 '22 06:10

Frank van Puffelen


At lowest possible costs (USD 11.53) it is better to have Blaze plan and use REST calls to Firebase functions freely: enter image description here

like image 37
Benny7500 Avatar answered Oct 10 '22 05:10

Benny7500