[zeromq-dev] Can ROUTER multiplex REQ/REP and PUB/SUB?

Mark Botner mbotner at gmail.com
Wed Mar 27 14:53:53 CET 2019


According to the reference pages: http://api.zeromq.org/4-2:zmq-socket

Summary of ZMQ_ROUTER characteristics
Compatible peer sockets *ZMQ_DEALER*, *ZMQ_REQ*,
*ZMQ_ROUTER*

So I don't think the design you are looking at will work.


Mark

On Wed, Mar 27, 2019 at 8:50 AM Jake <jake.cobb at gmail.com> wrote:

> I currently have a system that has two public ports, facilitating:
>
> REQ <-- tcp --> ROUTER <-- proxy --> DEALER <-- inproc --> REP
>
> and
>
> SUB <-- tcp --> PUB (various internal sinks supplying events)
>
> Is it possible to use a single public port for both the REQ and SUB socket
> connections that routes them based on connection type?  Something like:
>
>
> REQ --\       /--ROUTER--DEALER--REP
>        ROUTER
> SUB --/       \--PUB
>
> So there is only one TCP port listening required, a common CURVE
> configuration point, etc?
>
> -Jake
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190327/06cc5c9c/attachment.htm>


More information about the zeromq-dev mailing list