--
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/9015fc3f-aea6-42e7-92dc-edc2e2e6f5c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Phil,I don't see any indication that Functions will work with flowControl.maxMessages, given that it's a client side feature and also knowing that Functions is essentially a stateless microservice (it wouldn't store state across all instances to know how many are received in total).I'll ping a few Functions gurus to make sure I'm not leading you down the wrong path here. But it seems like you might be better served by a server instance which can retain state, such as GCE / GAE instance. Then it can receive the Firebase writes and batches them for insertion into ES (which should be much more optimal), and also utilize flowControl.maxMessages as needed.☼, Kato
From: 'Phil Hodey' via Firebase Google Group <fireba...@googlegroups.com>
Date: Sat, May 4, 2019 at 2:03 AM
To: Firebase Google Group
Hi,--In native cloud pubsub you are able to define flowControl parameters in the subscriber...Here you can set maxMessages to limit the amount of messages being pushed downstream.In my use case I have a firebase function that is indexing firebase data into an elasticsearch cluster. When there is a bulk update in firebase it is causing the elastic indexer to max out. The simplest solution would be to reduce the flow of messages coming from pubsub using the flowControl.maxMessages but it does not look like we have any control over the configuration of the pubsub queue,Is there anything I can do on pubsub.onPublish definition to control throughput?
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 fireba...@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/9015fc3f-aea6-42e7-92dc-edc2e2e6f5c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/514aae02-49b8-4280-95a7-0638ffe383ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/514aae02-49b8-4280-95a7-0638ffe383ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/e4d5f273-ccd8-494c-beca-a37747b9eb2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e4d5f273-ccd8-494c-beca-a37747b9eb2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/05015328-b05c-4dd9-8f8f-d363854e18e1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/05015328-b05c-4dd9-8f8f-d363854e18e1%40googlegroups.com.