[zeromq-dev] Which socket to choose?

Luca Boccassi luca.boccassi at gmail.com
Tue Aug 20 10:51:34 CEST 2019


Look into router/dealer

On Tue, 2019-08-20 at 08:28 +0300, Attila Magyari wrote:
> Thanks Brett,
> 
> So having two sockets, one for sending and one for receiving is the
> way to go?
> 
> By message order restrictions I meant the send/recv pattern to be
> unrestricted, no mandatory order of send/recv. The server could send
> an arbitrary number of messages to the client.
> 
> One-to-many as in one server socket to handle multiple client
> connections, just like the CLIENT/SERVER sockets.
> 
> Regards,
> Attila
> 
> 
> 
> On Mon, Aug 19, 2019 at 7:22 PM Brett Viren <bv at bnl.gov> wrote:
> > Attila Magyari <atti86 at gmail.com> writes:
> > 
> > 
> > 
> > > Reading the docs all the other sockets seem to have extra
> > restrictions or
> > 
> > > complications, which would not meet my needs:
> > 
> > > - bidirectional
> > 
> > 
> > 
> > I assume you mean symmetrically bidirectional?
> > 
> > 
> > 
> > If so, a pair of PUSH/PULL (or PUB/SUB) on each end would provide
> > that.
> > 
> > 
> > 
> > > - no message order restrictions
> > 
> > 
> > 
> > I don't know what this means here.
> > 
> > 
> > 
> > > - one-to-many client-server type of connections
> > 
> > 
> > 
> > Also, unclear to me. 
> > 
> > 
> > 
> > Client-server implies reply-request which is not (symmetrically)
> > 
> > bidirectional.
> > 
> > 
> > 
> > One DEALER may send the same request to many REP or ROUTER sockets.
> > 
> > 
> > 
> > -Brett.
> > 
> 
> _______________________________________________zeromq-dev mailing 
> listzeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190820/e40ef81a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190820/e40ef81a/attachment.sig>


More information about the zeromq-dev mailing list