You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/11/01 01:11:01 UTC

[GitHub] [rocketmq] duhenglucky edited a comment on issue #3447: 请问是否支持手动提交事务消息?

duhenglucky edited a comment on issue #3447:
URL: https://github.com/apache/rocketmq/issues/3447#issuecomment-955838727


   @oni7uka 我比较赞同你的想法,最近社区也在推动进行API的优化,从事务消息来说,综合考虑当前的设计,个人觉得更好的做法是:
   `              
   final Transaction transaction = producer.prepare(msg);
   
   executeLocalTransaction()
   
   transaction.commit();//rollback();
   `
   
   欢迎提出更多的建议,但是实际上API 的优化总是会那么难,所以我们可以在邮件列表里面发起一个讨论:https://rocketmq.apache.org/about/contact/


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org