Firebase cloud function deployment limit

194 views
Skip to first unread message

car...@nex.team

unread,
May 2, 2019, 12:36:58 PM5/2/19
to Firebase Google Group
When I deployed my cloud functions today, I hit this error:
functions: too many functions are being deployed, cannot poll status.

After reading firebase documents, I found that the root cause should be the API call (write) limit which only allows us to simultaneously deploy 80 functions per 100 seconds.

And after reading another document about partial deployment, I concluded that we could have the following solutions:
1. Only deploy the changed functions. But it's not easy to track all functions that are changed esp when we have a team of developers collaboratively implement at the same time.
2. Group functions into export groups in index.js file. This seems not the best solution too and sooner or later the group will reach the limit again and then we have to create new groups.

So I want to know is there any better solutions to solve this problem?

Thanks

Kato Richardson

unread,
May 6, 2019, 4:54:42 PM5/6/19
to Firebase Google Group
Hi Carson,

Those sound like reasonable short term options, although it would certainly be nice to have some better optimizations here. 

Having more than 80 Functions triggers should be uncommon. Would it be possible in your use case to consolidate some of the Functions triggers to reduce the number of deployed instances? Also try to utilize the emulator for continuous integration testing (CI) where possible and avoid deploying to a remote server with each rebuild.

☼, Kato





--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/203b114c-795b-45a9-a4d7-0c8af88d2dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages