ZMQ Pub-Sub latency spikes periodically [closed]
My demo is like one server and one client using PUB-SUB mode on the same CentOS machine. Both of them contains 2 threads with one zmq ctx(one for zmq_send and the other for zmq_msg_recv), client send...
View ArticleSending an existing dict through zmq ipc
I'm trying to send an existing dict through zmq ipc socket, I can send a string with this code, but I can't send a dict objectimport zmq, datetimed = {0: ('356612022462768', 'EVENT', 0, '2012-12-26...
View ArticleInconsistent behaviour for NetMQ implementation of Shared Queue (DEALER and...
I'm trying to implement with NetMQ the Shared Queue (DEALER and ROUTER Sockets) from ZeroMQ Examples. The code:using NetMQ;using NetMQ.Sockets;using System;using System.Threading;namespace...
View ArticleZeroMQ Load Balancing Broker 3 example, but with multiprocessing instead of...
I'm following along in the ZeroMQ book, and trying the Python examples. I'm at lbbroker3.py, and trying to switch it from using multithreading to multiprocessing in Python 3. I was looking at another...
View ArticleConflate PUSH-PULL Socket between NetMQ and ZeroMQ
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...
View ArticleC++ why does my message size change randomly after exiting a loop?
I'm using zmq to send messages and in my function for accepting a response for some reason when i exit the loop the 8th value always seems to spike up to a crazy high random number.I tried putting...
View ArticleZeroMQ connecting publisher drops sends() until the initial connect is...
import zmqcontext = zmq.Context()socket = context.socket(zmq.PUB)# import time# time.sleep(1)socket.send(b'123')Uncommenting the sleep makes it work. Any ideas how to prevent ZMQ from dropping...
View ArticleHaving trouble forwarding ZeroMQ PUB/SUB with EPGM and XPUB/XSUB
I'm trying to setup an XPUB/XSUB to proxy traffic from epgm to a tcp loopback and I'm having some issues. For testing I did ifconfig lo 127.0.0.1 netmask 224.0.0.0 up to allow loopback multicast. I've...
View ArticleRouter/Dealer Pattern facing unnecessary delay during multiple connections
I am using the Jer0mq server socket model and specifically the router dealer pattern because i want to validate the identity of the clients. My problem is that I notice random upsurge spikes of 500 ms...
View ArticleUsing the Draft API of ZMQ version 4.3.4 on Ubuntu [closed]
I'm trying to build a simple C example using the UDP Dish/Radio implementation in ZMQ. I've got a #define ZMQ_BUILD_DRAFT_API in place before including zmq.h. This lets the code compile, but the linker...
View ArticleWhy a ZeroMQ demo code doesn't work on Win10?
I'm learning how to communicate with a server from a client/trader perspective. It looks like ZeroMQ is the go-to package dealing with this. I found this piece of demo code on the website. The thing is...
View ArticleWhy will ZeroMQ PUSH/PULL work, but not PUB/SUB?
Environment: NVIDIA-flavored Ubuntu 18.01 on their Jetson development board with their TX2i processor. ZMQ 4.3.2, utilizing the cppzmq C++ wrapper for ZMQ.I've got a slew of code running using google...
View ArticleZMQ C++ Topics for Publish/Subscribe
For my Publisher/Subscriber pattern I want to use topics. So publish different messages on different topics. I already used topics in ZMQ with Python, but can not find how to use in C++.Is it possible...
View ArticleDo zmq subscribers know to skip subsequent parts of filtered topics for...
Say I have a publisher_socket and a subscriber_socket, created in two different processes. The publisher_socket publishes a two-part message, outlined in pseudo-code...
View ArticleLoad video in flask server python passing the chunks from zmq socket to it
I have the following problem, I am using Hololens glasses, where there is an API: https://IP/api/holographic/stream/live_high.mp4?holo=true&pv=true&mic=true&loopback=true’ that provides a...
View Articlesize_t == sizeof (uint64_t) not returning expected results [closed]
I'm compiling a C++ DLL from a reasonably well-vetted library (zeromq), and consuming it in my own Delphi bindings. I'm currently hitting an unexpected behavior in the C++ code, and don't have the...
View ArticleHow can I FetchContent with no CMake warnings for developers (with -Wno-dev)?
I am trying to add zmq as a third party library with FetchContent.However, I am uninterested on the warnings meant for devs.As I have taken the tag for a verified release, it should be working without...
View ArticleSend and receive data to ZeroMQ socket from outside cluster using load...
I have a service that is using a load-balancer in order to expose externally a certain IP. I am using metallb because my cluster is bare metal.This is the configuration of the service: Inside of the...
View ArticleHow to have multiple publishers and subscribers in ZMQ/0MQ?
How to create a network which allows for multiple publishers and multiple subscribers to those publishers?Or is it absolutely necessary for a message broker to be used?import timeimport zmqfrom...
View ArticleAsync request reply pattern in zeromq
I want to create a server that will handle a request / response scheme. The client of that server should be able to send multiple requests at one time (so REQ/REP does not fit). It should be like...
View Article