jonnii / chinchilla

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

Send/Receive pattern #66

Closed abrasat closed 8 years ago

abrasat commented 8 years ago

Hello, Is it possible to implement the send/receive pattern with the available chinichilla bus interface ? We need this pattern for instance in a client/server scenario, where different clients send data to a well-known queue on a server application (several sender and one receiver). Thanks in advance.

jonnii commented 8 years ago

It is yes, see below.

https://github.com/jonnii/chinchilla#request-response

https://github.com/jonnii/chinchilla/blob/master/src/Chinchilla.Integration/Features/RequestResponseFeature.cs

abrasat commented 8 years ago

Can you please detail about how to use request/response to implement send/receive? If I understand the link above, the "sender" application should send a message as request/response, is that correct ? Is there any possibility to disable the response, if none is expected ? And what about the "receiver" application: does the "receiver" subscribe to a message, in view to receive it ? Or how else should the "receiver" be implemented ?

jonnii commented 8 years ago

I think you need to spend some time understanding RabbitMQ fundamentals so you can understand how you would implement RPC without the need for a library. Once you understand that then there should be more than enough examples in the integration tests for you to get started with.