[zeromq-dev] Disconnecting from permanently dead endpoints

Pierre Ynard linkfanel at yahoo.fr
Wed Jan 25 18:08:04 CET 2012


> if the goal is to move data from source to several sinks,
> each of which can come and go, then normally the model
> is a known publisher and an unspecified set of clients getting that data.
> if data should go to exactly one client, then use PUSH-PULL.
> if data can or should go to each client, then use PUB-SUB.
> in both cases, 0mq handles what you want; you needn't worry about teardown etc.

I'm doing PUSH-PULL, and pulling data from several sources.

> > For other pattterns it gets harder and some people resort to creating
> > one socket per connection.

Having to handle several sockets would defeat the ease of use of zeromq;
in my case I'd rather just reset all the connections.

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."


More information about the zeromq-dev mailing list