Skip to content

[Enhancement] Support Creating or Updating Subscription Groups in Batch #8576

Closed

Description

@caigy

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

Currently the creation and modification of subscription groups can only be executed one by one at a time, which can be inefficient when dealing with a large number of subscription groups. In #8265 batching creation of topics was supported, but the efficiency for creating subscription groups also needs to be improved.

This enhancement request aims to enhance Apache RocketMQ by adding support for creating or updating subscription groups in batch, allowing users to efficiently manage multiple subscription groups at once.

Motivation

A message can only be consumed by a consumer after the group is created, thus the efficiency of creating subscription groups should be mattered. When the number of subscription groups is large, a message may be 'waiting' to be consumed by a specified group for a long time if only one subscription group can be created at a time.

This feature will enable users to manage multiple subscription groups in a single operation, thus streamlining the administration process, reducing operational overhead.

Describe the Solution You'd Like

  • A new request code UPDATE_AND_CREATE_SUBSCRIPTIONGROUP_LIST with value 225 is added.
  • The UPDATE_AND_CREATE_SUBSCRIPTIONGROUP_LIST request receives a list of configurations of subscription groups, and then modifying the subscriptionGroupTable according to the list in batch.
  • A new mqadmin subcommand updateSubGroupList is added, which enable creating or updating a list of subscription groups in a single operation.

Describe Alternatives You've Considered

None

Additional Context

No response

Activity

  1. self-assigned this
    on Aug 23, 2024
  2. added a commit that references this issue on Aug 27, 2024
  3. added a commit that references this issue on Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions