简体   繁体   English

Firebase云功能是否有触发限制?

[英]Is there a trigger limit for Firebase Cloud Functions?

I plan to watch a Firebase database node for create/delete and reflect that to another database node using Cloud Functions. 我计划观看Firebase数据库节点以进行创建/删除,并使用云功能将其反映到另一个数据库节点。

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? 例如,假设一次添加10000个节点,这应该在其他地方触发10000个插入,这是可以接受的吗?

UPDATE: 更新:

I see these limits in Quotas section: Max concurrent invocations for a background function and Max invocation rate for a background function 我在配额部分看到了这些限制: Max concurrent invocations for a background function 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? 这是否意味着如果我发出超过1000个请求,休息(上面的示例为9000)会被忽视,或者只是慢慢完成所有请求?

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. 事件将按照您的函数处理它们的速度处理,在该并发最大值内。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM