You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support zero queue consumer for partitioned topic. #7280
Is your feature request related to a problem? Please describe.
Currently, the zero queue consumer just can subscribe to a non-partitioned topic. In some case, we need to use zero queue consumer to subscribe to a partitioned topic.
Hello, I am planning to work on this issue. I am planning to read how zero queue consumer is subscribed to a nonpartitioned topic and proceed from there by getting some kind of input for which partition this consumer should be subscribed to and so on. Can you tell me where to find the code related to this?
@merlimat How about syncing the backlog between the broker and client periodically. Treat topics with more backlogs as a high priority. Since we don't know if a topic will there be any messages written, to avoid a consumer block to one topic(no more data are written), we can reset the permits in a sync cycle if there are topics that have more backlog, looks like
reset permits to 0
re-order the consumers
trigger read data from the high priority consumer
Users can achieve the desired purpose by setting the frequency of synchronization.
We can optimize the sync mechanism, e.g. carry the backlog when dispatching messages. Only if the message is not dispatched for a period of time, perform a separate sync command.
Activity
merlimat commentedon Jun 15, 2020
It’s not enabled because we cannot know which partition the next message will be coming from. Any suggestion on how to achieve that?
sundar-10 commentedon Jun 17, 2020
Hello, I am planning to work on this issue. I am planning to read how zero queue consumer is subscribed to a nonpartitioned topic and proceed from there by getting some kind of input for which partition this consumer should be subscribed to and so on. Can you tell me where to find the code related to this?
codelipenghui commentedon Mar 5, 2021
@sundar-10 You can check the
ZeroQueueConsumerImpl.codelipenghui commentedon Mar 5, 2021
@merlimat How about syncing the backlog between the broker and client periodically. Treat topics with more backlogs as a high priority. Since we don't know if a topic will there be any messages written, to avoid a consumer block to one topic(no more data are written), we can reset the permits in a sync cycle if there are topics that have more backlog, looks like
Users can achieve the desired purpose by setting the frequency of synchronization.
We can optimize the sync mechanism, e.g. carry the backlog when dispatching messages. Only if the message is not dispatched for a period of time, perform a separate sync command.
leizhiyuan commentedon Apr 6, 2022
what is the current status?