[rabbitmq-discuss] Getting RPC response from multiple rpc server

Mehmet Dursun Ince mehmet at mehmetince.net
Thu Mar 6 22:09:10 GMT 2014


Hi all

I've been trying to do that getting response from multiple rpc server for 
one message. I solved send a broadcast RPC message via *fanout* exchange. 
Each rpc server gets message. 

For instance;
when client send "1" only rpc_server.py returns. That's OKAY.
when client send "2" only rpc_server2.py returns. That's OKAY too.
But when client send "n" only first server returns. But i want to get 
response from both rpc server. i coded both server to send response for "n"

i cant figure out that how can i solve my issue so i attached my source 
code and screenshot.

i'm looking for some advice and tips from someone who tried to get message 
like me.

PS: if i'm sending this message to wrong mailing list. i'm sorry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140306/3b83db57/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_client.py
Type: text/x-python
Size: 1744 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140306/3b83db57/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_server.py
Type: text/x-python
Size: 1260 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140306/3b83db57/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_server2.py
Type: text/x-python
Size: 1260 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140306/3b83db57/attachment-0002.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2014-03-07 00:01:31.png
Type: image/png
Size: 210715 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140306/3b83db57/attachment.png>


More information about the rabbitmq-discuss mailing list