@google-cloud/pubsub 2.15.1
Single topic with single subscriber in pull mode.
Setup is that I publish around 500 messages in one second.
Subscriber quickly picks up, but after 100 messages, there is a 1-2 second delay until the next 100 messages are received. Handling the 500 messages takes around 7-8 seconds in total, so in a real world scenario the client would quickly fall behind.
- nodejs process is not stalled during delay. A timer that logs on console every .5 sec verifies this
- client side processing is not causing delays. Only processing is sending back ack
- I tried to modify all relevant settings in subscriber setups, including
If I set the flowcontrol maxMessages to 10, I see the same pattern as described above, but with batches of 10 messages being received. Setting it above 100 always keeps the message amount received at 100.
Question - is there anything setup-wise that I have overlooked? It seems like a fairly trivial setup, and the system seems more than capable to handle this kind of load.
thanks,
Peter