[zeromq-dev] REQ-REP vs. DEALER-ROUTER
Jan Müller
217534 at gmail.com
Sat Dec 1 11:54:23 CET 2012
Hi,
I have a relatively slow network connection between two hosts and I want to
reliably download lots of small messages from one host to the other.
So far, I've been sending messages with REQ-REP from host1 to host2 and
before sending the next message, I've been waiting for an ACk message coming
back. Unfortunately, the round trip time is too long, and now I would like
to do this asynchronously.
What is a most simple way to do so? Do I need a DEALER-ROUTER connection? In
host1 I send through DEALER let's say 100 messages, in ROUTER I receive one
message after the other and immediately send back an ACK after each message
received, and on the 'DEALER side' I poll for messages and count the
incoming ACKs. If the number of incoming ACKS == number of sent messages all
is fine, otherwise there was an error??
Or is there a better way of doing this?
Cheers,
Jan
More information about the zeromq-dev
mailing list