[zeromq-dev] Talk about ZeroMQ

Pieter Hintjens ph at imatix.com
Mon Oct 1 16:14:13 CEST 2012


On Mon, Oct 1, 2012 at 3:09 PM, andrea crotti <andrea.crotti.0 at gmail.com> 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



More information about the zeromq-dev mailing list