[zeromq-dev] zeromq loadbalance based on ip_hash

Doron Somech somdoron at gmail.com
Sat Aug 8 18:57:06 CEST 2015

You can design your protocol, so you can design something like this:

* Client send a "ChooseWorker" message to loadbalancer
* Load Balancer pick a worker (you can choose the one with the least
clients or whatever algorithm you want) and reply the worker id to the
* Client save the worker id and from now on on each message attach the
worker id (probably the first frame).
* Load balancer route the message to the correct worker according to the
attached worker id.

On Thu, Aug 6, 2015 at 11:35 AM, 黄颖志 <nohuangyz at gmail.com> wrote:

> Hello, everybody
>   Throuth The Guide Document
> <http://zguide.zeromq.org/page:all#Basic-Reliable-Queuing-Simple-Pirate-Pattern> ,
> I implement a load balance device. But in my scenario, the same Client
> should send message to the same Worker. Does zeromq supports this? We could
> load balance client request based on ip_has through Nginx, could Zeromq do
> that?
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150808/9786cf4c/attachment.htm>

More information about the zeromq-dev mailing list