[zeromq-dev] Load Balancing with differrent worker types

Pau pau at teleopsia.com
Wed May 29 11:19:36 CEST 2013

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?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130529/6b2914f6/attachment.htm>

More information about the zeromq-dev mailing list