Skip to content

Zero receiver queue size for multi topic consumers #18944

Discussion options

You must be logged in to vote

The documentation indicating that it cannot be done for a partitioned topic is going to provide the same justification: https://github.com/apache/pulsar/blame/master/site2/website/versioned_docs/version-2.10.x/cookbooks-message-queue.md#L25.

For a single topic, the zero queue consumer sends a request for a message and waits indefinitely until a message is sent by the broker. In the case of a multi-topic consumer, like the regex consumer, the routing would be overly complex. The consumer would need to try to consume from individual topics, but not at the same time, otherwise the consumer could have more than zero messages in the queue.

The docs could be made clearer though to indicate that…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndyKirsch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants