[zeromq-dev] Distributed application with REQ REPLY sockets
Justin Azoff
justin.azoff at gmail.com
Mon Aug 13 20:54:24 CEST 2018
On Mon, Aug 13, 2018 at 2:51 PM Patrick <preedy73 at gmail.com> wrote:
>
> Since I’m using the REQ REPLY sockets it is behaving like the first method - both send and recv within one loop.
>
> How can I use zmq to achieve the behavior in the 2nd method? I’m assuming it can’t be done using the REQ REPLY sockets I have in place.
It can.. you'd do it just like I showed.. you just need to loop twice.
Instead of doing send/recv 100 times, send all 100 items first, then
recv all 100 responses.
--
- Justin
More information about the zeromq-dev
mailing list