Understanding ZeroMQ
So as I have asked in a previous post, I want to be able to make programs or functions written in different languages to communicate between them.I have come across zeromq recently and I'm trying to...
View ArticleJNI compiling on different platforms
I'm trying to compile the 0MQ java JNI binding...If I compile the jar on mac os x can I copy this to a linux distro?Download jzmq, the java JNI lib for zmq. Uncompress and cd into that dir, and build...
View ArticleWhat's the right ZeroMQ architecture for my scenario?
I have a service A that every once in a while needs to send a message to a cluster of services B1, B2 ... BN. Then all of these services need to receive that message reliably, and send a confirmation...
View ArticleZeroMQ background thread creation
I am trying to understand the threading model of ZeroMQ.According to their white paper http://zeromq.org/whitepapers:architecture#toc3, each I/O thread that the context is created with maps directly to...
View ArticleWhat is a good ZeroMQ / nanomsg architecture for a server that sends data to...
I am trying to create a network architecture which has a single server and multiple clients. The clients can connect and disconnect at any time so they need to announce their existence or shut-down to...
View ArticleZeroMQ Subscriber in Rails Worker Fails to Receive Messages, but Works with...
I am trying to subscribe to the ZeroMQ from my Quake Live server. I registered the server on QLStats (green status here: https://qlstats.net/panel2/servers.html), confirming that the PUB socket is...
View ArticleHow many copies are needed for a ZeroMQ IPC request?
I am investigating how many times a copy happens in an IPC request. This helps me decide the best solution for my mobile device.For example, shared memory is zero-copy, since processes can directly...
View ArticleZeroMQ subscribe broken if publisher restarts?
3 Raspberry Pis involved here running ZMQ publish and subscribe.I have one running a pump in the cellar, one as a monitor upstairs showing LEDs for state of pump. They send heartbeats to each other to...
View ArticleZeroMQ (C++): sending pointer with inproc
I am trying out ZeroMQ (zmq) for the multithreaded program.I want to avoid copying the data that need to be passed to workers.My idea was to send the pointer to the data as a zmq message.It works. But...
View ArticleWhat reliability guarantees (if any) does ZMQ make for PUB/SUB over epgm?
I've got an app sending messages on an epgm PUB socket to one or more epgm SUB sockets. Things mostly work, but if a subscribing application is left up long enough, it will generally end up missing a...
View ArticleZMQ socket gracefully termination in Python
I have the following ZMQ script#!/usr/bin/env python2.6import signalimport sysimport zmqcontext = zmq.Context()socket = context.socket(zmq.SUB)def signal_term_handler(signal, fname): socket.close()...
View ArticleMissing Messages with PGM in PUB/SUB Architecture Using ZMQ 4.3.6
I'm working on a PUB/SUB architecture with the following setup:Platform: x86 Ubuntu 24.04ZeroMQ Version: 4.3.6 (libzmq)PGM Version: 5.3.18Build Configuration: No additional flags except...
View ArticleHow to handle ZeroMQ publisher crash?
I have a zmq proxy(XPUB/XSUB) running on a thread and some other publisher/subscribers connected to this proxy on python, and have a publisher code on C++. All connections are made using tcp on...
View ArticleCorrect way to store Python function definitions (names) in a database?
Context - Skip to "Crux" for tl;dr:I'm building a report automation system that includes a handful of independent "worker" daemons each with their own APScheduler instance, one central "control panel"...
View ArticlePyZMQ asyncio SUB socket not receiving last message even with CONFLATE set to 1
I have an async PUB socket as follows:import asyncioimport zmqimport zmq.asyncioasync def serve(address: str): context = zmq.asyncio.Context() socket = context.socket(zmq.PUB)...
View ArticleZMQ timeout while trying to create socket
So I am trying to create a server, which controls multiple workers. The code I am having problems with right now, is the worker code. I want each of the workers to bind to their port and wait for a...
View ArticleCan't send a NumPy array larger than 2 GB with ZeroMQ
I'm using the Python code shown below to serialize and send a NumPy array from the client to the server using ZeroMQ. I noticed that when the NumPy array is larger than 2 GB the client seems to stall...
View ArticleWhy do ZMQ PUSH/PULL and PUB/SUB patterns behave differently for late joiners?
I'm observing different behaviors between ZMQ PUSH/PULL and PUB/SUB patterns when using ZMQStream. In PUSH/PULL, if my PULL socket starts late, it still receives messages that were sent earlier....
View ArticleZeroMQ 'Restart' if no reply was recieved
I have a python program which sends height data from my client to my server program. My server program will not be always running so if I don't recieve a response I would like it to try again.So far...
View ArticleHow can someone send data from MetaTrader 4/5 Terminal to external server?
this is somehow intended to (maybe) be(come) a guideline post in terms of MetaTrader 4/5 and its corresponding language MQL4 both set into context with sending data to external servers. In my special...
View Article