I have a doubt about Load Balancing.


I've an application where there are several routers each connected to several workers. The worker/client send messages to its router which resends to another router and this one to the worker/server. All workers are clients and servers at the same time (actor model).


So when acting as server, I have a router socket where dealers (workers) connect. When the router receives a message it resends to worker. Workers are not identicial and so, some of them handle some messages and some others. To send the message to the appropriate worker I use ZMQ_IDENTITY in the worker and everything is working ok.


The problem arises when I want to have several identical workers attached to a router and do Load Balancing. I have seen in the reference that 2 sockets with identical ZMQ_IDENTITY connected to a third results in undefined behavior.


Is there a known way to do this?


Thanks,


Pau


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to