dragon-zhang commented on issue #2937:
URL: https://github.com/apache/rocketmq/issues/2937#issuecomment-859986848


   EN
   In the actual business scenario, there are at least three types of 
businesses at the same time
   1. There are activities, and the stage definition is 1-10, 11-30, 30-50, 50 
+;
   2. There are activities, and the stage definition is 1-20, 21-100, 100 +;
   3. There is no activity, and there is no need for periodic merging;
   ......
   In order to meet the actual complex business scenarios, I redesigned 
`MessageListenerStagedConcurrently` and 
`StageOffsetStore`,`getStageDefinitionStrategies` can now define multiple 
policies (such as the different definitions of the above 1 and 2 types of 
businesses), and support dynamic configuration. A new `computeStrategy` is 
added to let users choose a policy, A new `computeGroup` is added to 
distinguish different businesses in the same definition (such as category 1 
above) (the ID of businessman a is `a` and that of businessman B is `b`).
   
   CN
   在实际的业务场景中,至少同时存在3类商家:
   1.有活动,且阶段定义1-10,11-30,30-50,50+;
   2.有活动,且阶段定义1-20,21-100,100+;
   3.无活动,不需要阶段性并法;
   ......
   
为了满足实际复杂的业务场景,我重新设计了`MessageListenerStagedConcurrently`和`StageOffsetStore`,`getStageDefinitionStrategies`现在可以定义多个策略了(比如上面1、2类商家的不同定义)、并且支持了动态配置,新增`computeStrategy`让用户选择一种策略,新增`computeGroup`以区分同类定义(比如上面的1类)中的不同商家(商家a的id为`a`、商家b的id为`b`)。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to