jonnii / chinchilla

Making RabbitMq More Awesome!
Apache License 2.0
39 stars 11 forks source link

A custom requst/reply topology builder. #35

Open mzabolotko opened 10 years ago

mzabolotko commented 10 years ago

Hello. I need to use a custom request/reply topology builder. How can I inject this into the chinchilla bus instance? Or what do you think about approaches to implement this?

jonnii commented 10 years ago

Right now there's no easy way to do that. You'd need to pull out the entire RequesterFactory and implement that whole thing yourself. The Request/Response works, but isn't really ready for prime time yet. For example it doesn't yet have a way to turn on publisher confirms etc... What kind of topology do you want to build for request/reply?

mzabolotko commented 10 years ago

I want to use named queues and exchanges. For example, the requester defines the exchange (with provided name) where request messages will send to, and create the reply subscriber. The reply subscriber will create the exchange and queue (with provided name) where reply messages will send to. The DeliveryContext will use the "reply-to" property to find the exchange created by the reply subscriber to send reply messages.

jonnii commented 10 years ago

So here are the problems with request/response as it is currently implemented:

I think each of those should be a separate pull request, as they're all incremental improvements.

How would you like to tackle this? IMO the DeliveryContext change is the most intrusive as it will probably require extending the IBus interface to add some kind of Publisher cache or something.