[zeromq-dev] zeromq loadbalance based on ip_hash

Doron Somech somdoron at gmail.com
Mon Aug 10 08:08:28 CEST 2015

You can design your own 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 Mon, Aug 10, 2015 at 7:41 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?
> ------------------------------
> nohuangyz at gmail.com
> _______________________________________________
> 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/20150810/304fdab2/attachment.htm>

More information about the zeromq-dev mailing list