[zeromq-dev] loadbalancing problem?

Martin Sustrik sustrik at 250bpm.com
Wed Oct 20 11:37:23 CEST 2010

Hi Sven,

> Yes, I'm aware of the fact, that I need at least 5 dispatcher instances
> to be able to send messages in 5 recursive levels. that's OK, but it's
> not the Problem ... anyway, you understood the situation correctly ;o)
> I'm afraid, I'l have to implement that part myself ... this was my main
> argument to use a massage queueing system.
> Can you tell me, where I have to start searching (in your code) to
> temporarily take busy workers out of the balancing ?

As I said. It's impossible. There's no way to find out whether a remote 
component is busy or not. The finest level of control would be to send 
one request and consider the socket blocked until you get a reply. 
However, that kind of thing is a scalability killer.

If you want to write a sane scalable application, make the workers 
stateless and pass the state in the messages.


More information about the zeromq-dev mailing list