zeromq

How to listen to a TCP stream on my FastAPI server

How to listen to a TCP stream on my FastAPI server Question: I am working on a project building an API that is able to send the live location of vehicles to a frontend. I get this location data by subscribing to a ZMQ stream by running a while loop. This is all working and …

Total answers: 1

zmq_getsockopt error : zmq.error.ZMQError: No such file or directory for ipc path

zmq_getsockopt error : zmq.error.ZMQError: No such file or directory for ipc path Question: I am new to use ZeroMQ, so I am struggling with some code. If I do the following code, no error is shown : import zmq.asyncio ctx = zmq.asyncio.Context() rcv_socket = ctx.socket(zmq.PULL) rcv_socket.connect(“ipc:///tmp/test”) rcv_socket.bind(“ipc:///tmp/test”) But, if I try to use the function …

Total answers: 1

How to expose a Python package to C# using python .Net vs ZeroMQ or other

How to expose a Python package to C# using python .Net vs ZeroMQ or other Question: I am developing an application which is written in Python3 and is composed of a Python library/package (which contains the core functionality) and a Python application which will provide a cli shell and handles user commands. In addition the …

Total answers: 2

ZMQ Python PUB/SUB works but not my C++ Subscriber with Python Publisher

ZMQ Python PUB/SUB works but not my C++ Subscriber with Python Publisher Question: I am using Ubuntu 18.04, Qt 5.12, and libzmq.so.5.1.5. I have 2 very simple Python 3.6 scripts, using pyzmq 18.0.1, one implements ZMQ PUB and one implements ZMQ SUB. These Python scripts work find and data is transmitted from one to the …

Total answers: 1

zero-mq: socket.recv() call is blocking

zero-mq: socket.recv() call is blocking Question: I am trying to use zero-mq.My requirement is very simple.I want to be able to communicate between two peers in a network.I came across this program in the examples in the book. $ pub_server.py import zmq import random import sys import time port = “5556” if len(sys.argv) > 1: …

Total answers: 1

pyzmq create a process with its own socket

pyzmq create a process with its own socket Question: I have some code thats monitoring some other changing files, what i would like to do is to start that code that uses zeromq with different socket, the way im doing it now seems to cause assertions to fail somewhere in libzmq, since i may be …

Total answers: 1

Connecting to a remote IPython instance

Connecting to a remote IPython instance Question: I would like to run an IPython instance on one machine and connect to it (over LAN) from a different process (to run some python commands). I understand that it is possible with zmq : http://ipython.org/ipython-doc/dev/development/ipythonzmq.html . However, I can not find documentation on how to do it …

Total answers: 5

zeromq: how to prevent infinite wait?

zeromq: how to prevent infinite wait? Question: I just got started with ZMQ. I am designing an app whose workflow is: one of many clients (who have random PULL addresses) PUSH a request to a server at 5555 the server is forever waiting for client PUSHes. When one comes, a worker process is spawned for …

Total answers: 4

node.js performance with zeromq vs. Python vs. Java

node.js performance with zeromq vs. Python vs. Java Question: I’ve written a simple echo request/reply test for zeromq using node.js, Python, and Java. The code runs a loop of 100K requests. The platform is a 5yo MacBook Pro with 2 cores and 3G of RAM running Snow Leopard. node.js is consistently an order of magnitude …

Total answers: 6