8000 PollingSubscriberConnection - allow number of messages delivered to be configurable · Issue #1868 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

PollingSubscriberConnection - allow number of messages delivered to be configurable  #1868

@rdmoore

Description

@rdmoore

The value is hard coded to an upper bound of 1000 (which used to be 500). Shouldn't it be configurable?

This doesn't work well for really large messages and for messages that take substantial time to process.

I see no way to configure this value. Doesn't look like the client has any control over the number of messages pulled from the subscription. I was hoping that the FlowController logic would support but it seems focused on whether/when to go back the server to get more rather than limiting the number pulled.

Note that if FlowController is set to 1 element, deadlock is likely on the FlowController semaphore (for example, it being set to 1, while having just processed 10 messages).

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0