[zeromq-dev] Zeromq xpub/xsub with Tornado
Александр Емелин
frvzmb at gmail.com
Mon Apr 29 16:31:29 CEST 2013
Hello, guys. I am new in ZeroMQ world. Please, help me with my question.
I am using ZeroMQ pub/sub sockets with python's Tornado.
I have several tornado processes on different ports balanced with Nginx.
All those processes communicate via ZeroMQ pub/sub.
Every process creates its own PUB socket and every process subscribes to
all known publishers.
This approach is very difficult to maintain (because I should describe all
publishers in configuration file and reload all processes with new config
if new publisher was added) and one of The Guide chapters is exactly about
this: http://zguide.zeromq.org/page:all#The-Dynamic-Discovery-Problem
So I think I need xpub/xsub proxy. But my question:
Shoud this proxy run in its own separate process? In the current
architecture I can just start all tornado processes and everything works
fine. With proxy I must maintain additional process with xpub/xsub code to
which all publishers and all subscribers from tornado processes will
connect. Am I right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130429/f264774b/attachment.htm>
More information about the zeromq-dev
mailing list