Reputation: 3707
I plan to watch a Firebase database node for create/delete and reflect that to another database node using Cloud Functions.
Is there a limit for such an operation? For example assume 10000 nodes added at once which should trigger 10000 inserts somewhere else, is this acceptable?
UPDATE:
I see these limits in Quotas section:
Max concurrent invocations for a background function
and Max invocation rate for a background function
Does that mean if I make more than 1000 requests, rest (9000 for the example above) gets disregarded or just gets slower to finish them all?
Upvotes: 8
Views: 2554
Reputation: 317362
Rate limits won't drop events. If they did, that would be exceptionally bad, and your app would not scale.
Rate limits are in place to prevent a massive update from spinning up potentially millions of instances concurrently. Instead, Cloud Functions will limit the maximum concurrent number of invocations, and force all the events to go through that max instead of trying to handle them all at the same time. The events will be processed as fast as your function can deal with them, within that concurrent maximum.
Upvotes: 7