Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
caigy opened this issue Aug 23, 2024 · 0 comments · Fixed by #8577
Closed
1 task done

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

caigy opened this issue Aug 23, 2024 · 0 comments · Fixed by #8577
Assignees

Comments

@caigy
Copy link
Contributor

caigy commented Aug 23, 2024

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

@caigy caigy self-assigned this Aug 23, 2024
RongtongJin pushed a commit that referenced this issue Aug 27, 2024
support creating or updating groups in batch

support creating or updating groups in batch

support creating or updating groups in batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant