Skip to content

如果我想在controller中调用rocketmq发送消息,并等待消息处理完成后返回再执行下一步,有没有这个方法? #7767

Discussion options

You must be logged in to vote

你这种不如吧controller改造成一个异步接口,进来发完消息,就返回accept,然后你下游处理完成后,再回调上游的一个接口来更新结果。

如果不行,就是 @cserwen 说的,参考 https://www.cnblogs.com/yunqishequ/p/12511391.html 这个看看这种用法, 这种就绑定rocketmq了。另外,我理解社区用的人也比较少。

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Conmi-WhiteJoker
Comment options

@leizhiyuan
Comment options

@cserwen
Comment options

cserwen Jan 22, 2024
Collaborator

Comment options

You must be logged in to vote
1 reply
@leizhiyuan
Comment options

Answer selected by Conmi-WhiteJoker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants