发布响应模式的使用 #5165
Answered
by
derekcollison
githubzhangfei
asked this question in
Q&A
发布响应模式的使用
#5165
-
我能不能用这个模式在某些场景下取代http的请求响应?我尝试了一下,回复的消息只有一个主题。并没有找到回复的内容。我的需求如下:第一步:我向主题a发送消息。订阅者b收到后,根据收到的结果进行逻辑处理。然后把结果返回给a。我应该怎么样才能拿到结果呢?测试代码1测试代码2从上面代码中摘录的api。虚心求教 |
Beta Was this translation helpful? Give feedback.
Answered by
derekcollison
Mar 2, 2024
Replies: 1 comment
-
Yes you can use this for that purpose. Here is an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
githubzhangfei
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can use this for that purpose. Here is an example.
https://github.com/derekcollison/nats-http