Comments (9)
Its rather straightforward how to do DEALER and ROUTER stuff, made a small gist for it https://gist.github.com/Asmod4n/9372750 /cc @tarcieri
from celluloid-zmq.
Thanks for the example, but I cannot see the proxying of the messages from ROUTER to DEALER and back in the example.
from celluloid-zmq.
The server(dealer) sends messages to the handler(router), the handler then sends information back and the server reads them.
from celluloid-zmq.
I am not quite sure to which ZMQ pattern are you referring to, but I refer to this pattern:
http://zguide.zeromq.org/page:all#Shared-Queue-DEALER-and-ROUTER-sockets
https://github.com/imatix/zguide/raw/master/images/fig16.png
ROUTER and DEALER are on same node and passing messages internally e.g. proxying
I apologize if this was not clear from the issue description.
from celluloid-zmq.
The polling is done in the Reactor: https://github.com/celluloid/celluloid-zmq/blob/master/lib/celluloid/zmq/reactor.rb#L13 or do you mean https://github.com/chuckremes/ffi-rzmq/blob/master/lib/ffi-rzmq/device.rb ? @alhafoudh
from celluloid-zmq.
As I understand the polling in Reactor is to do the the actor signaling efficient, but I need to make another Poller inside an Actor with two sockets. The DealerSocker and RouterSocket.
Yes, the Device in ffi-rzmq is exactly what I need, but the celluloid-zmq does not play well with it :(
from celluloid-zmq.
I believe you have to run it in its own actor.
At least the specs here do it that way https://github.com/chuckremes/ffi-rzmq/blob/master/spec/device_spec.rb#L30 ^^
from celluloid-zmq.
Yes, but when zmq_proxy is called the program control is never returned and this is a problem for celluloid actors
from celluloid-zmq.
@alhafoudh https://github.com/zeromq/czmq will sonnish(i hope) release a 3.0 version of its high level C binding which does this in the background.
I have written a ruby ffi wrapper for it which i will release once they release czmq 3, that wrapper will then maybe become the new basis for celluloid-zmq.
from celluloid-zmq.
Related Issues (20)
- The libzmq version 2.0.7 is incompatible with ffi-rzmq HOT 3
- No License.txt HOT 1
- exclamation mark HOT 2
- PubSocket : writing to a specific topic HOT 2
- require of celluloid-io is no longer needed. HOT 1
- Class hierarchy deeper than one level breaks on 0.14.0 HOT 6
- No specs? HOT 1
- Support jeromq, jrzmq? HOT 3
- How to handle closing sockets? HOT 8
- Authentication and Encryption HOT 6
- Internal reactor lock on high message pressure in router-dealer pair HOT 2
- release 0.17 HOT 15
- Multi-process example. HOT 1
- Assertion failed: check () (src/msg.cpp:248) HOT 7
- Port to rbczmq HOT 53
- Test suite broken HOT 1
- Function 'zlistx_head' not found HOT 3
- `rake spec` throw exceptions
- How thread safety is handle by Celluloid-ZMQ with ffi-rzmq HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celluloid-zmq.