Hey FlutterFlow community,
I wanted to share a heads-up about a situation I've encountered with Google Cloud Functions used for FlutterFlow private API calls. My hope is that this information might help others avoid unexpected high bills. Prior to this I had over 20 cloud functions that have cost max of $1. Thats with 1000's of invocations monthly.
FYI:
I enabled private API calls which ff created ffPrivateApiCall (1st gen) and ffPrivateApiCallV2 (2nd gen).
Despite minimal recent usage, my Google Cloud bill has skyrocketed - Cloud Functions showed a 1351% cost increase!
The ffPrivateApiCallV2 function was configured automatically with the setting:
256 MiB memory
1 minimum instance
100 maximum instances
80 concurrency
What I changed and will see if it helps:
A minimum of 1 instance means it's always running, incurring costs even when not in use.
Only 1 maximum instances and concurrent which can lead to unexpected scaling and costs.
There was ongoing activity in the function metrics, even without active project usage so maybe have 0 for that.
If you're using private API calls, I'd strongly recommend:
Carefully reviewing your Cloud Function configurations
Setting up billing alerts and quotas
Regularly checking your function metrics for unexpected activity
Stay vigilant with your cloud costs, fellow FlutterFlow devs!