zeromq

how to implement Pub-Sub Network with a Proxy by using XPUB and XSUB in ZeroMQ(jzmq) 3.xx

不打扰是莪最后的温柔 提交于 2019-12-21 17:13:01
问题 I am trying to implement using XPUB and XSUB as provided in this below figure. I have gone through their examples provided but could not get one for XPUB and XSUB in Java. Here they have given an example in C which is little complex as I am new to ZeroMQ. I am trying to use it in android using jni wrapped version. Please help me to find an example, how to implement this Pub-Sub Network with a Proxy in ZeroMQ using java. Currently I am referring http://zguide.zeromq.org/page:all I have tried

What is the proper way to wait for connections?

安稳与你 提交于 2019-12-21 10:45:09
问题 I am trying to implement a simple message passing between two applications using NetMQ (a slightly more elaborate description of what I am trying to achieve is below). After a bit of trial and error I've found that I can't just send or receive messages right away after a Connect/Bind calls, since they are non blocking and actually return even if the connection hasn't been established yet. For now I solved this with Thread.Sleep(), but this has a bad taste to it and definitely a no-go for a

Detect dropped messages in ZeroMQ Queues

假装没事ソ 提交于 2019-12-21 09:13:14
问题 Since it does not seem to be possible to query/inspect the underlying ZeroMQ queues/buffers sockets to see how much they are utilized, is there some way to detect when a message is dropped due to full buffers in a Publisher socket when sent/queued? For example, if the publisher queue is full, the zmq_send operation will simply drop the message. Basically, what I want to achieve is a way to detect situations where the queues are getting stressed and/or full to be able to (later on) tune the

ZeroMQ with PHP 7 in Ubuntu does not compile (“error: too many arguments to function”)

 ̄綄美尐妖づ 提交于 2019-12-21 06:29:13
问题 I have upgraded php5.6 to php7, but zeromq extension makes a lot of problems. Where can I download the correct zmq.so file for php7? None of the official sites offer a version for php7 that works (I'm using apache2.4). I've followed along the following tutorial: How to install ZeroMQ. The step "Installing ZeroMQ" is working fine, but the second step "Installing the PHP binding" is failing when I execute the command "make" with the following error: "/home/puser/zeromq-4.1.4/php-zmq/zmq.c:2740

ZeroMQ with PHP 7 in Ubuntu does not compile (“error: too many arguments to function”)

寵の児 提交于 2019-12-21 06:29:04
问题 I have upgraded php5.6 to php7, but zeromq extension makes a lot of problems. Where can I download the correct zmq.so file for php7? None of the official sites offer a version for php7 that works (I'm using apache2.4). I've followed along the following tutorial: How to install ZeroMQ. The step "Installing ZeroMQ" is working fine, but the second step "Installing the PHP binding" is failing when I execute the command "make" with the following error: "/home/puser/zeromq-4.1.4/php-zmq/zmq.c:2740

How to expose a container port outside of docker/container using docker-compose?

南笙酒味 提交于 2019-12-21 04:54:08
问题 I have a container that it has several ports, I want to have access to one of its ports ( 9001 ) outside of this docker as remote. My docker IP is: 172.17.0.1 My container IP is: 172.19.0.23 My server IP is: 192.168.1.131 I have searched about that and I found expose port keyword, and I did it but not worked. How to expose docker ports to make your containers externally accessible Reference This is my docker-compose file: version: '3' services: nginx: image: nginx:latest container_name: nginx

zeromq.node installation error Ubuntu 12.04: ' node-gyp rebuild'

人盡茶涼 提交于 2019-12-21 04:40:53
问题 I'm trying to install zeromq.node using: $ npm install zmq However, I keep getting the error below. Any help would be much appreciated. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/npm/node_modules/node-gyp/lib/build.js:215:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17) gyp ERR! stack at Process._handle.onexit (child_process.js:674:10) gyp ERR! System Linux 3.2.0-29-generic gyp ERR! command

Python ZeroMQ PUSH/PULL — Lost Messages?

核能气质少年 提交于 2019-12-21 01:20:13
问题 I am trying to use python with zeroMQ in PUSH / PULL mode, sending messages of size 4[MB] every few seconds. For some reason, while it looks like all the messages are sent, ONLY SOME of them appear to have been received by the server. What am I missing here? Here's the code for the client -- client.py import zmq import struct # define a string of size 4[MB] msgToSend = struct.pack('i', 45) * 1000 * 1000 context = zmq.Context() socket = context.socket(zmq.PUSH) socket.connect("tcp://127.0.0.1

Ratchet PHP WAMP - React / ZeroMQ - Specific user broadcast

我只是一个虾纸丫 提交于 2019-12-20 10:10:41
问题 Note : This is not the same as this question which utilises MessageComponentInterface . I am using WampServerInterface instead, so this question pertains to that part specifically. I need an answer with code examples and an explanation, as I can see this being helpful to others in the future. Attempting looped pushes for individual users I'm using the WAMP part of Ratchet and ZeroMQ, and I currently have a working version of the push integration tutorial. I'm attempting to perform the

linking to a static 0MQ library in VS

眉间皱痕 提交于 2019-12-20 09:38:39
问题 This may be a Visual Studio question more than anything else... I'm trying to build a 0MQ C++ example using VS10 and ZeroMQ 2.2.0. I downloaded the windows sources and tried to follow these instructions in order to build 0MQ statically. Specifically: Switched to Release For all 7 projects in the solution: set General\Configuration Type to Static library (.lib) set C/C++\Code Generation\Runtime Library to Multi-threaded (/MT) added ZMQ_STATIC to C/C++\Preprocessor\Preprocessor Definitions