zeromq

How to use Zeromq's inproc and ipc transports?

▼魔方 西西 提交于 2019-12-02 20:39:59
Im a newbie to ZERMQ. ZeroMQ has TCP, INPROC and IPC transports. I'm looking for examples using python and inproc in Winx64 and python 2.7, which could also be used for linux. Also, I have been looking for UDP methods of transport and cant find examples. The only example I found is import zmq import zhelpers context = zmq.Context() sink = context.socket(zmq.ROUTER) sink.bind("inproc://example") # First allow 0MQ to set the identity anonymous = context.socket(zmq.XREQ) anonymous.connect("inproc://example") anonymous.send("XREP uses a generated UUID") zhelpers.dump(sink) # Then set the identity

Understanding zeromq java binding

落花浮王杯 提交于 2019-12-02 20:26:31
I'm investigating zeromq as a message passing solution in a java project, but I find the instructions on java binding somewhat difficult to follow. http://www.zeromq.org/bindings:java I am unfamiliar with java bindings, so these may be stupid questions, but can someone help me understand: Why do I need to install anything? Will jars I build on one machine work on another system? I need this application to be portable. If so, why do I need to build my own jars to begin with? I feel like the instructions provided on zeromq require base familiarity with building C projects that I lack, so perhaps

ZeroMQ + Protocol Buffers

早过忘川 提交于 2019-12-02 20:06:56
ZeroMQ FAQ page suggest use of Google's protobuf as a way to serialise message content. Has anyone see a good usage example? I also need to get the answer to "What is the biggest advantage of serialising messages?" - whether it may be something I can live without and take the advantage of slimmer pipeline. I quite like the idea of .proto files and the protoc compiler. Also, it seem that another great tool to throw at the playground would be libev , any comments are welcome :) If you are 100% certain that the programs that are going to communicate over ZMQ will at all times be capable of

Load testing ZeroMQ (ZMQ_STREAM) for finding the maximum simultaneous users it can handle

不羁岁月 提交于 2019-12-02 19:53:10
问题 Does anyone have any real-world scenarios that load-tested ZMQ sockets for maximum no. of 'concurrent users' (not throughput) they can handle? Looks like ZeroMQ has some serious problems with FD limits. The scenario is: there are numerous web-server frameworks out there that are boasting of millions of concurrent users they can handle - now if ZeroMQ cannot handle beyond FD_SETSIZE no. of users at any point of time, it is a very serious restriction on scalability (since FDs are not just

linking to a static 0MQ library in VS

我的梦境 提交于 2019-12-02 19:32:36
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 Updated zmq.h and zmq_utils.h so that if _MSC_VER and ZMQ_STATIC are defined then DLL_EXPORT will also be

How do I compile jzmq for ZeroMQ on OSX?

一世执手 提交于 2019-12-02 18:53:25
Trying to follow the directions from: http://github.com/zeromq/jzmq I installed pkg-config using Homebrew and then I run the following commands: ./autogen.sh ./configure The configure fails with: checking how to hardcode library paths into programs... immediate ./configure: line 15263: syntax error near unexpected token `newline' ./configure: line 15263: ` PKG_CHECK_MODULES(' SangWoo I made a simple list about jzmq building for MacOS. Install brew https://brew.sh Install tools for jzmq building brew install autoconf brew install automake brew install libtool brew install pkg-config brew

ZeroMQ in javascript client

試著忘記壹切 提交于 2019-12-02 17:42:39
Have anyone used ZmqSocket.js successfully? I'd like to know how can it be used to establish a safe channel between the browser and a zeromq server app. Is there other/better options for such use case? I've never used ZmqSocket.js, but I can tell you that it's probably not a good idea (yet). This is because zmq still assumes that both peers know the protocol well and will blow up if given invalid data (they are working on fixing that, though). What I do right now is have a simple node.js based proxy that uses socket.io to communicate with browsers and pushes data in (and reads from) a zeromq

Difference between Apache Thrift and ZeroMQ

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 17:06:38
I understand that Apache Thrift and ZeroMQ are softwares belonging to different categories, and it is not easy to do a comparison since it is an apple to orange comparison. But I don't know why they belong to different categories. Aren't they both used to pass data between different services, which may or may not be written in different languages? When should I use Thrift and when should I use a message queue? sdg They belong to different categories primarily because they are targetted at different audiences with different concerns. Therefore they are better at different things. Apache Thrift

Boost: De-serializing a custom C++ object passed over ZeroMQ pull socket

杀马特。学长 韩版系。学妹 提交于 2019-12-02 14:51:11
问题 The text I am writing here is a follow up problem that I opened up earlier in another thread at Boost: Serializing/De-serializing a custom C++ object passed over ZeroMQ pull socket. The compilation problems in the earlier thread have been resolved by using a textarchive type rather than binaryarchive but now I experience a runtime problem when de-serializing. I repeat the earlier text here with a new problem statement for your convenience. I am relatively new to C++ realm and appreciate any

How does zmq poller work?

亡梦爱人 提交于 2019-12-02 14:37:39
I am confused as to what poller actually does in zmq. The zguide goes into it minimally, and only describes it as a way to read from multiple sockets. This is not a satisfying answer for me because it does not explain how to have timeout sockets. I know zeromq: how to prevent infinite wait? explains for push/pull, but not req/rep patterns, which is what I want to know how to use. What I am attempting to ask is: How does poller work, and how does its function apply to keeping track of sockets and their requests? When you need to listen on different sockets in the same thread, use a poller: ZMQ