rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[Enhancement] Support the disablement of producer registration and fast channel shutdown.

Open ymwneu opened this issue 1 year ago • 0 comments

Before Creating the Enhancement Request

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

Summary

  1. The current broker retains all producer channel information, which can consume a significant amount of resources when there are a large number of producers. In non-transactional message scenarios, the producer channel information is not useful. It would be beneficial to consider adding a switch to not record PID information in these scenarios.
  2. Support fast channel event processing to improve the speed of disconnection.

Motivation

  1. The current broker retains all producer channel information, which can consume a significant amount of resources when there are a large number of producers. In non-transactional message scenarios, the producer channel information is not useful. It would be beneficial to consider adding a switch to not record PID information in these scenarios.
  2. Support fast channel event processing to improve the speed of disconnection.

Describe the Solution You'd Like

  1. Add a new switch called enableRegisterProducer to support not recording producer channel info in non-transactional scenarios.
  2. When registering a producer/consumer, register group information in the channel so that related groups can be quickly located when the channel is disconnected.

Describe Alternatives You've Considered

no

Additional Context

No response

ymwneu avatar Mar 28 '25 07:03 ymwneu