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. >> On Aug 13, 2018, at 1:01 PM, Justin Azoff <[email protected]> wrote: >> >> On Mon, Aug 13, 2018 at 12:23 PM Patrick <[email protected]> wrote: >> >> It’s a 10Gbit network. >> >> Each of the 50 interfaces (one per node) is sending 150Mbytes while it is >> receiving 150Mbytes of data. > > Ah, I think I see what you are doing now.. you sort of have a mini > bittorrent type of file distribution going on. > > When each node sends its data to the 100 destinations, are you doing this: > > sockets = [list of 100 req sockets] > > for s in sockets: > s.send(piece) > ok = s.recv() > > or this: > > for s in sockets: > s.send(piece) > for s in sockets: > ok = s.recv() > > The 2nd method would perform a lot better. > > -- > - Justin > _______________________________________________ > zeromq-dev mailing list > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
