[zeromq-dev] zeromq DEALER client to multiple servers (ROUTER)

ashish nagar ashish_nagarudr at yahoo.com
Sat Sep 28 20:25:58 CEST 2013

I am using ZEROMQ for distributed messaging application. Need to connect client (DEALER socket) to multiple servers (ROUTER socket on server side).  What are my options on CLIENT side ?
	1. Create DEALER socket on client side for each server endpoint (ROUTER socket). 
	2. Create only ONE DEALER socket on client side and add multiple endpoints. 
I tried option 2 -  connecting to multiple endpoints but message 
always goes to the first connected endpoint. followed following steps:  - create  DEALER socket - connect to first endpoint  - then on the run time,  add another endpoint to the socket by using 
socket.connect(endpoint). Do I need to reconnect?
In DEALER socket, there is no option to send message on a particular endpoint in case it is connected to multiple endpoints.

Any idea?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130928/3f4e5c00/attachment.htm>

More information about the zeromq-dev mailing list