Skip to content

Support zero queue consumer for partitioned topic. #7280

Closed

Description

@codelipenghui

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.

Activity

  1. added
    type/feature
    on Jun 15, 2020
  2. merlimat commented on Jun 15, 2020

    @merlimat
    Contributor

    It’s not enabled because we cannot know which partition the next message will be coming from. Any suggestion on how to achieve that?

  3. sundar-10 commented on Jun 17, 2020

    @sundar-10

    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?

  4. codelipenghui commented on Mar 5, 2021

    @codelipenghui
    ContributorAuthor

    @sundar-10 You can check the ZeroQueueConsumerImpl.

  5. codelipenghui commented on Mar 5, 2021

    @codelipenghui
    ContributorAuthor

    @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

    1. reset permits to 0
    2. re-order the consumers
    3. 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.

  6. leizhiyuan commented on Apr 6, 2022

    @leizhiyuan
    Contributor

    what is the current status?

  7. locked and limited conversation to collaborators on Dec 9, 2022
  8. converted this issue into a discussion #18846 on Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clienthelp wantedtype/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions