[Python] Conflate PUSH-PULL Socket between NetMQ and ZeroMQ

Discussão em 'Python' iniciado por Stack, Setembro 6, 2025.

  1. Stack

    Stack Membro Participativo

    I wanted to create a socket between a C# and a Python application and ZeroMQ seemed like a good implementation for this. I want to send data bidirectional and non-blocking, so for the prototype I though I would make two PULL-PUSH sockets and this works fine.

    Now, because the data is time-sensitive, I only want to keep the latest message and not spend time processing them in FIFO order. After looking around, I found the CONFLATE argument. Unfortunatelty this does not seem to work between ZeroMQ and NetMQ, as NetMQ does not have a formal definition of this argument.

    After some testing (see image) it seems to work for the receiving side in Python, but not the otherway around. Does anybody have any information or workarounds for this? What would be the best and most efficient approach/ architecture?

    Any help would be appreciated.

    [​IMG]

    Continue reading...

Compartilhe esta Página