Git-Yang commented on issue #3449:
URL: https://github.com/apache/rocketmq/issues/3449#issuecomment-966000510


   > * 可以通过配置同时支持同步和异步两种方式。
   > * 异步投递的两个主要缺点是无法保证消息顺序和数据重复问题。
   > * 
为了避免投递失败消息丢失,可以对失败消息进行重试,重试n次失败后,阻塞停止当前level对应的线程继续投递。此时投递的offset为失败消息的offset,避免了消息丢失。但是如果服务重启可能会导致数据重复,这里通过阻塞当前level继续投递降低消息重复率。
   
   关于数据重复问题:
   - 在正常服务重启的情况下尽可能优化到消息不重复
   - 当某条消息发送异常导致阻塞时,会导致最多scheduleAsyncDeliverMaxPendingLimit条消息重复


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

To unsubscribe, e-mail: [email protected]

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


Reply via email to