Andrew
Andrew

Reputation: 203

Is RabbitMQ practical for RPC-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?

Upvotes: 7

Views: 6102

Answers (2)

dgorissen
dgorissen

Reputation: 6305

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

Upvotes: 1

LenW
LenW

Reputation: 3096

Yes we use rabbitmq in a similar fashion in production.

See Request Reply Pattern

Upvotes: 2

Related Questions