[zeromq-dev] zeromq-dev Digest, Vol 19, Issue 7

Alexander Petry alexander.petry at itwm.fraunhofer.de
Sun Jul 12 11:33:35 CEST 2009


* Ferenc Szalai <szferi at wsbricks.com> [090712 10:18]:
> Alexander Petry wrote:
> >Hi!
> >
> >As I understood it, you should make the exchange global and each  reader
> >binds a local queue to that exchange and receives messages through  that
> >queue.   I  guess  the  problem   with   your   code   is,   that   each
> >reader "overwrites" the global information for the "PROCESS_Q". Just an
> >idea.
> 
> It could work, but what if I have multiple writer as well?

Good question.  My only hit on that would be to have  some  intermediate
process (can be one of the writers, but one has to make sure that  every
writer   is   aware   of   that),   all   writers   are    sending    to
this designated one's global queue. Every message received on that queue
will be forwarded to the global Exchange where the  readers  attach  to.
That  is  pretty  much  your broker approach.

alex



More information about the zeromq-dev mailing list