[zeromq-dev] More robust version of syncpub/syncsub example

Pieter Hintjens ph at imatix.com
Wed Oct 9 18:54:26 CEST 2013


On Wed, Oct 9, 2013 at 6:43 PM, Greg Ward <greg at gerg.ca> wrote:

> After explaining what the sleep() is for, there's a little teaser
> sketching the "right way" to do it...

I think you're right that the idea is flawed. It would work for
coordinating a publisher with a known set of subscribers that all
start up at the same time, but it's useless for general use.

A real solution is considerably more complex though. Ch5 describes
Clone, which does a reliable pub sub based on distributing key/value
pairs.

-Pieter



More information about the zeromq-dev mailing list