dragon-zhang opened a new pull request #2895:
URL: https://github.com/apache/rocketmq/pull/2895


   
比如电商搞活动,前`10`笔订单可以额外获得一台笔记本电脑,前`10-30`笔订单可以额外获得一台平板电脑,前`30-100`笔订单可以额外获得一台手机,而在`100`笔之后订单则没有额外的奖励。
   
   - 将`1-10`的区间称为`阶段1`;
   - 将`10-30`的区间称为`阶段2`;
   - 将`30-100`的区间称为`阶段3`;
   - 将`100+`的区间称为`阶段4`;
   
   
由于每个`阶段`的奖励都`相同`,因此只需要阶段之间保证`顺序`(`阶段2`必须在`阶段1`后面)即可,而阶段内可以`乱序`(比如`阶段1`的`10`条消息可以`并发消费`),因此设计了`MessageListenerPeriodicConcurrently`。


-- 
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