Replies: 4 comments
-
是的,必须要做幂等。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
首先 RocketMQ 不保证仅消费一次,消费重复是可能的,最常见的如 Rebalance 导致的重复消费,针对你这种情况,提供几个排查点:
所以最好还是在消费侧增加幂等逻辑,避免重复消费对业务造成影响 |
Beta Was this translation helpful? Give feedback.
0 replies
-
业务幂等是非常有必要的,这也是兜底的一种方式。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
retrytimes为0时刻意抛出异常,模拟重试场景。结果重试消息监听到了2次,而且2次的重试消息retrytimes都为1。这是为什么?
Beta Was this translation helpful? Give feedback.
All reactions