How should I handle multiple publishers on the same port on the same host?

I am using a module cluster

and in each of the workflows I need to publish certain values ​​to one server that subscribes to each worker.

I am using zmq socket PUB

in every worker process, but when every worker socket binds on the same port, it causes conflict and doesn't work. What socket pattern should I use so that I can publish / push / send values ​​from my workflows and subscribe to them using my server process?

+1


source to share


1 answer


Unbind pub-sub bind-connect. Garters and pub bunches solve the problem.



0


source







All Articles