On Mon, Oct 1, 2012 at 3:09 PM, andrea crotti <[email protected]> wrote:

> I would like to send results from multiple workers to multiple
> subscribers, but being sure that all the messages are received.
>
> If I use PUB/SUB some messages might get lost in case a subscriber is
> not active, and with PUSH/PULL only one client would get the message.
>
> So what's the possible solution for this?

There are several alternatives; one option is the Clone pattern in
Chapter 5 of the Guide. The pattern is basically pub-sub for the main
distribution and request-reply (dealer/router) for recovery. It uses a
broker in the middle but you could move the broker logic into each
worker if you had to.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to