yedf3 opened a new issue #3500: URL: https://github.com/apache/rocketmq/issues/3500
有没有事务消息的官方例子?没有找到事务消息的官方例子,谷歌搜出来的靠前的例子为这个:https://segmentfault.com/a/1190000039868496 这个例子的流程如下: 1. 开启本地事务 2. 发送Prepare消息 3. 执行Prepare成功后本地事务,返回UNKNOWN 4. RocketMq回查时,返回COMMIT,最后发送消息 在这个流程中,3执行完之后,最好是要直接发送Commit到RocketMQ,如果走4的话,就会导致6秒超时回查,过了这6秒,业务才被调用,才达到最终一致。业务讨论时反馈没有异常发生也要等待这个6秒太长了 -- 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]
