[zeromq-dev] PyZMQ PushHandler?

Michel Pelletier pelletier.michel at gmail.com
Wed Apr 11 00:52:48 CEST 2012

Or you can change the bind into a connect, and have the subscriber(s)
do the bind. Then all your pubs can connect to any number of bound sub
endpoints which in turn will receive all pub'ed messages.

I have not seen this code in question, so I could be wrong about how
it works, but that seems like a simple solution to me that leverages
the N-to-N capability of 0mq pub/sub.


On Tue, Apr 10, 2012 at 3:50 PM, Bill Lubanovic <bill at madscheme.com> wrote:
> PyZMQ includes a PUBHandler to distribute Python logging messages
> through a ZMQ PUB socket.  I want to log from applications like web
> servers that may have multiple child processes, and the PUB socket
> binds to a specific port.  What's a good alternative?  It looks like I
> could 1) write a PUSHHandler for each process 2) fanning in to a
> well-known PULL socket to collect the messages and pass  them to 3) a
> PUB socket to fan out to subscribers.
> --
> Bill Lubanovic
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list