jamesyc33 opened a new issue #167: FEATURE: 希望按照 Tag 处理, 而不是Topic以及幂等消费的扩展点 URL: https://github.com/apache/rocketmq-spring/issues/167 现在就一个 onMessage 方法 存在问题就是, 我如果要分别处理多个 tag, 如 : order:add, order:update 就需要这样 ``` public void onMessage(MessageExt message) { // 对不同的 tag 进行 if-else 判断进行处理 or 策略模式 } ``` 而用业务实体类为参数的是永远没有场景使用的 ``` public void onMessage(业务实体类 业务类) { // 咋区分不同 tag? 没办法 } ``` 而我希望这样使用 ``` @Tag("order:add") public void orderAdd(OrderMsg ordermsg){.......} ``` 我自己是可以改 `DefaultRocketMQListenerContainer#consumeMessage` 但是改完就跟官方分支分开了, 官方看下是否有必要呢? 另外, 幂等性的判断也应该统一处理的, 也需要在 `DefaultRocketMQListenerContainer#consumeMessage` 中添加逻辑, 是否可以加一个扩展点呢?
---------------------------------------------------------------- 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] With regards, Apache Git Services
