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 * 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, 黄颖志 <[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? > > > _______________________________________________ > 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
