[zeromq-dev] ZMQ_XPUB_NODROP and zmq_proxy()

Francesco francesco.montorsi at gmail.com
Fri Oct 13 13:21:53 CEST 2017


Btw, just in case it can be useful to others:

>I would like to know: if I set ZMQ_XPUB_NODROP=1 on the PUB sockets, and
then connect SUBscribers over TCP to the proxy, will the no-drop >option at
PUB-side be respected?
>Or should the ZMQ_XPUB_NODROP=1 option be set on the proxy backend socket
instead?
I ended up setting ZMQ_XPUB_NODROP=1 on all sockets (both the INPROC PUB
ones attached to proxy frontend and the TCP PUB proxy backend socket) and
so far it works just fine: the PUB automatically adapts to the speed of the
slowest subscriber, and no messages are lost.

Francesco


2017-10-09 15:51 GMT+02:00 Francesco <francesco.montorsi at gmail.com>:

> Hi all,
>
> I have an application that is multithreaded. Each thread owns a PUB socket
> over INPROC transport. All these PUB sockets are connected to a ZMQ proxy
> that has a backend with TCP transport.
>
> I would like to know: if I set ZMQ_XPUB_NODROP=1 on the PUB sockets, and
> then connect SUBscribers over TCP to the proxy, will the no-drop option at
> PUB-side be respected?
>
> Or should the ZMQ_XPUB_NODROP=1 option be set on the proxy backend socket
> instead?
>
>
> Thanks,
> Francesco
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20171013/f5c7571a/attachment.htm>


More information about the zeromq-dev mailing list