esque bidirectional use during request processing?

Super simple question, I couldn't find a concrete answer out there.

Is RabbitMQ suitable for RPC-like operations when processing HTTP requests?

I'm interested in firing off a message when a user HTTP request is received, waiting for the response from a backend server, and then sending the response to the client.

Is that a common use scenario? Are people doing it with success? Any pitfalls? Any examples or common design patterns?


Yes we use rabbitmq in a similar fashion in production.

See Request Reply Pattern


This has worked for me, I do suggest you look at the Web messaging extentions/tools though:

http://www.rabbitmq.com/devtools.html#web-messaging

链接地址: http://www.djcxy.com/p/10512.html

上一篇: 在哪里可以找到类似于Java的XNA的框架

下一篇: 在请求处理过程中使用双向使用?