-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Labels
api: pubsubIssues related to the googleapis/nodejs-pubsub API.Issues related to the googleapis/nodejs-pubsub API.
Description
It would be amazing if it was possible to set flow control at the Pub/Sub client level.
We have a microservice architecture, where a service could subscribe to many topics A challenge with subscription-level flow control is that it it is not possible to regulate the throughput among the subscriptions.
Our current solution is to implement backpressure downstream and fail-fast by throwing an error which bubbles up leading to the onMessage callback, quickly nacking the message if we our resources have been exhausted.
I am not sure if this is even possible with the current underlying APIs for Pub/Sub.
What would you like to see in the library?
No response
Describe alternatives you've considered
Manually writing a wrapper for the underlying APIs.
Additional context/notes
No response
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the googleapis/nodejs-pubsub API.Issues related to the googleapis/nodejs-pubsub API.