zeromq Questions
1
Say I have a PUB server that zmq_send()'s realtime messages to SUB client. If client is busy and can not zmq_recv() messages quick enough, then messages will be buffered in client (and/or server).
...
Plebeian asked 29/12, 2015 at 1:37
2
I am a PhD student in Cloud Computing, I plan to use the microservices based architecture with consul and zeromq for my research project. I had few questions that I am finding hard to understand. C...
Mcewen asked 5/11, 2015 at 23:21
1
I am trying to send large messages ( 300 MB ) over a REP-socket.
There are multiple clients, each connecting to the server via a REQ-socket. The server creates a dedicated socket for every client, ...
1
Solved
Here is my code with the extraneous stuff stripped out:
coordinator.py
context = zmq.Context()
socket = context.socket(zmq.ROUTER)
port = socket.bind_to_random_port(ZMQ_ADDRESS)
poller = zmq.Pol...
1
Solved
I'm using Windows 7 x64, nodejs 5.1.0 and Electron 0.35. I followed the instructions from Electron Quick Start app and then added the line require("zmq") to the main.js. At this point, after npm in...
Fag asked 26/11, 2015 at 10:8
1
We are seeing a bizarre and unexplained phenomenon with ZeroMQ on Windows 7, sending messages over TCP.( Or over inproc, as ZeroMQ uses TCP internally for signalling, on Windows ).
The phenomenon ...
Nationwide asked 29/10, 2015 at 8:58
1
Solved
I'm using the ZMQ pattern dealer/router.
In my project, a router is an agent manager and a dealer is an agent.
So I have many dealers and only one router.
Each dealer can send its own request to ...
Aerodonetics asked 29/10, 2015 at 11:12
1
Solved
ZeroMQ provides pretty good documentation about how to set up a pub-sub pattern with the topic filter, as described in the api docs. ZeroMQ also provides the methods socket.send_json() and socket.s...
2
I'm trying to implement a non-blocking receive method with ZeroMQ using the ZMQ_DONTWAIT flag but recv() behaves like being called without the flag:
auto start = std::chrono::steady_clock::now();...
Paschal asked 29/9, 2015 at 12:9
0
I'd like to do intensive, non-interactive calculations/data analysis using R. The analysis requests would be called from a Node.js/Express backend.
The input structure is a JSON of ~100kB and the ...
1
Solved
Lets say I have a very simple Client/Server model, using REQ/REP from ZeroMQ. See python code below.
In the code below the client will wait forever, but I want the client to give up (lets say afte...
1
In my ruby script,I am using celluloid-zmq gem. where I am trying to run evaluate_response asynchronously inside pollers using,
async.evaluate_response(socket.read_multipart)
But if I remove sl...
Astrology asked 9/9, 2015 at 12:42
1
I'm building an infrastructure (in C) where several seperate services communicate trough ZeroMQ. Now, in order to make this all running fast and smoothly, I want ZeroMQ to run asynchronously.
I kno...
1
Solved
I am trying to use ZeroMQ's pub-sub sockets. However, I don't clearly understand the role of context (zmq::context_t) while creating sockets (zmq::socket_t).
Assuming that I want to create 5 subs...
3
Is there a reason why I should use application level heartbeating instead of TCP keepalives to detect stale connections, given that only Windows and Linux machines are involved in our setup?
5
Solved
In gtk applications all execution is taking place inside the gtk_main function. And other graphical frame works have similar event loops like app.exec for QT and clutter_main for Clutter. However Z...
1
The example way to send messages using Cap'n Proto needs a file descriptor to write to:
::capnp::writeMessageToFd(fd, message);
But in ZMQ the message needs to be passed to a ZMQ function:
zm...
2
Solved
I noticed in the FAQ, in the Monitoring section, that it's not possible to get a list of connected peers or to be notified when peers connect/disconnect.
Does this imply that it's also not possibl...
Johan asked 7/2, 2014 at 19:2
1
Solved
I implemented the Last Value Caching (LVC) example of ZMQ (http://zguide.zeromq.org/php:chapter5#Last-Value-Caching), but can't get a 2nd subscriber to register at the backend.
The first time a su...
Doner asked 16/6, 2015 at 9:49
3
Solved
Before asking this question, I did my best by reading severel
questions on SO (tagged Ratchet and dealing with similar issues but to
no avail. I even asked a question which received no attentio...
1
Solved
I am going to install ZeroMQ library in my pc using pip package installer. I use https://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/basics.html#installation as my reference. After exec...
1
Solved
I am trying to define a common basic message which defines the type of the message (for easier parsing) and is then extended with the actual message. The messages will be used in an RPC way.
My .p...
Ablative asked 15/6, 2015 at 16:49
2
Solved
I have a single producer and n workers that I only want to give work to when they're not already processing a unit of work and I'm struggling to find a good zeroMQ pattern.
1) REQ/REP
The produce...
Goldfilled asked 14/6, 2015 at 0:12
2
Solved
How can I implement or do kind of "hack" in PUB-SUB pattern to get an ability to publish only to authorized subscribers, disconnect unauthorized subscribers etc?
I googled for this problem, but al...
1
Solved
The documentation on saltstack appears to be unclear regarding what ports are required from the salt-master -> salt-minion (apparently none are required).
It suggests that ports only need to be ope...
Disqualify asked 5/6, 2015 at 16:30
© 2022 - 2024 — McMap. All rights reserved.