[zeromq-dev] [PATCH] Moved tests off 5555 (conflict with Eclipse)
Martin Lucina
mato at kotelna.sk
Wed May 4 13:41:24 CEST 2011
sustrik at 250bpm.com said:
> On 05/04/2011 01:21 PM, Martin Lucina wrote:
>
> > The real use case for "bind to random port", which I have used in the past
> > for production work, is when you have dynamic parts of your topology. You
> > don't care about the actual port numbers used for those parts.
>
> Dynamic parts of the topology should connect rather than bind, no?
Think of the case where you're distributing work, and you want different
work sets to use different topologies for QoS purposes. So you end up
wiring up a new topology for each work set, and you want a bunch of
transient ports to use for that topology (which are communicated to other
nodes by a well-known service they connect to).
It might not be a particularly scalable design, but I'm not the only person
doing these sorts of things since the PyZMQ guys explicitly added a
bind_to_random_port() method to their API.
-mato
More information about the zeromq-dev
mailing list