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
* 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, 黄颖志 <[email protected]> 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?
>
> ------------------------------
> [email protected]
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to