[rabbitmq-discuss] pika.channel.basic_consume
Marcin Krol
mrkafk at gmail.com
Fri Jan 28 14:03:29 GMT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gavin M. Roy wrote:
> On Thu, Jan 27, 2011 at 2:52 PM, Marcin Krol <mrkafk at gmail.com> wrote:
>
>> Can channel.basic_consume handle more than 1 callback?
>
> It can't right now, but I am working on the next version and would
> consider adding it for good reason. Is there a reason you want to do
> this?
Well, basically I need to do 2 kinds of RPC using the same client and
server: read-write kind of RPC is distributed among all the servers in a
cluster ("data safety through redundancy" reason), while another
(read-only) kind of RPC executes only in the server that the client
connected to.
I could see from a not delivering the same message twice but you
> could just use a fanout exchange and bind both consumers to this.
I need to run one or the other, not both, as consumers are somewhat
different. That's why I used 2 different exchanges for 2 callback queues.
- --
Regards,
mk
- --
Premature optimization is the root of all fun.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNQsywAAoJEFMgHzhQQ7hOcvoH/3KCTURl+2kGDyWcxm9yrKHC
s8e+h81YH5/tUPFZT4Bpo7aOOho/z4yWwOGe8ZSNQGakorhgChpt3IVQvANkXgGM
wji6nEExbXOH47XW7qmsaI0HeYAknQHOB/tCdHZXrMLl/TDTYeUPwoa60gmDfGVn
zPlZeX/eNAUaBjvhhvTWcvigk5K5NCRxlsUHFYhxQxqpL1NyVj/qUnbGT3M/oKPo
cMTrcdqNVVNlvCJT1csDC8SScHIZ2AO1WtwDJeooXhWxRkeY7XQOFR86PoHcFI2h
BmBcxwSl1Equ+B/pUU2ZEXuWsLWxT5LLpRfoBA2Il4fh3dP7wb5kWLgdz3XClJA=
=zOUH
-----END PGP SIGNATURE-----
More information about the rabbitmq-discuss
mailing list