googleapis / nodejs-pubsub

Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics.
https://cloud.google.com/pubsub/
Apache License 2.0
517 stars 228 forks source link

Improve streaming pull stream retry behaviour #1712

Closed feywind closed 1 year ago

feywind commented 1 year ago

There are several potentially problematic behaviours with streaming pull stream retries that may have been making some of the known issues worse (or causing them).

In order to better get debugging information on these in the future, we also want to add some more stream logging messages for when things disconnect and reconnect. These will go out to the 'debug' channel of the subscription.