[zeromq-dev] Survey: use of 0MQ request reply
Martin Sustrik
sustrik at 250bpm.com
Thu Jun 16 11:09:45 CEST 2011
Hi Dirkjan,
> In a pure REQ/REP setup, I wonder how identity is checked. I.e. is
> there anything that assures that a response is going back to the
> client that sent the related request? The REQ/REP names kind of imply
> that this is provided, but I guess it's only enforced by order of the
> operations (i.e., first response goes to first request). I think I'd
> like it more if the client identify was passed explicitly.
No. The routing is based on identities.
> The thing I keep thinking of is something that I don't think maps
> trivially to ZeroMQ right now:
>
> - A single port on the server (need some kind of sub-sockets, I think)
Yes, subports. That's often asked for feature.
> - Client identity concept on the server without having to set it on
> the client; defined streams
Yes, that's done internally. Identity is automatically generated if you
don't set it by hand.
> - Each stream has separate control and data "channels"
How would that work?
Martin
More information about the zeromq-dev
mailing list