Skip to content

Client-level Flow Control #2042

@udnes99

Description

@udnes99

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

No one assigned

    Labels

    api: pubsubIssues related to the googleapis/nodejs-pubsub API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions