Are the ACK's async? If they are not, you can use the REQ socket instead. Are you using multiple threads?
Joshua On Jul 5, 2012, at 7:58 PM, Diffuser78 wrote: > Anyone ? > > On Thu, Jul 5, 2012 at 8:23 AM, Diffuser78 <[email protected]> wrote: > I have a client and a server app. Client needs to send 1000 lightweight > (5KBs) messages per second to the server. Client also wants an ACK from > server that server got the msg that client sent. > > Here is what I have designed. Please let me know your thought in case you see > incorrect usage of the patterns. > > > CLIENT (DEALER socket) > > Do the following in while loop > > 1. Get messages to send > - Send then using zmq_send() > 2. zmq_poll() for fds ready for reading > - Use zmq_recv() to receive the messages > > > SERVER (ROUTER socket) > > Do the following in while loop > > 1. zmq_poll () for fds ready for reading > - Use zmq_recv() to receive the messages > 2. Perform Processing (Business Logic) > 3. Get messages to send > - Send then using zmq_send() > > > Thanks. > > _______________________________________________ > 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
