You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guocheng Zhang (Jira)" <ji...@apache.org> on 2021/03/31 12:06:00 UTC
[jira] [Created] (TUBEMQ-586) Optimize the implementation of the
PartitionExt class
Guocheng Zhang created TUBEMQ-586:
-------------------------------------
Summary: Optimize the implementation of the PartitionExt class
Key: TUBEMQ-586
URL: https://issues.apache.org/jira/browse/TUBEMQ-586
Project: Apache TubeMQ
Issue Type: Improvement
Components: Client
Reporter: Guocheng Zhang
Optimize the implementation of the PartitionExt class
This class is an extended class based on Partition class, it's mainly used to manage partitions from the perspective of the client. At present, it mainly implements the current limiting logic, accumulates the consumption metrics(mainly size) of the current partition, and according to the current limiting strategy, there is a large scale per minute and a small scale every 5 seconds, statistics and comparison, and do flow control management.
Although this logic implements the current limiting operation of the client, it is not well readable. If anyone has a better optimized implementation plan, welcome to put forward your ideas and communicate and improve them.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)