Comments (3)
Hi Ernest,
This sounds like a reasonable approach. In response to your questions:
- fbzmq::NonblockingFlag has to do with reading sockets. Typically you would set this for a socket if you are polling it in an eventloop. If this is set and you read an empty socket, fbzmq will return an error, if not set, the recv will block (timing out or not depending on timeout parameter)
- If by "enveloping" you mean building multipart messages for something like router-dealer, no, fbzmq does not do any of that for you. we have apis to send and recv multipart messages though.
You may already have read this, but this doc does a nice job outlining router dealer: http://zeromq.org/tutorials:dealer-and-router
John
from fbzmq.
Thanks for reply.
- ok, looks like I dont need it at this moment.
- no, I mean adding identity frames on top of message, I almost sure I dont have to, since the zmq adds it in DEALER/ROUTER case
So far, everything works as expected until I add second client to send requests. Will keep debugging it
from fbzmq.
@kreuzerkrieg => Regarding (2) you can refer to ZeroMQ Guide and it should tell you about behaviors as well as multiplexing multiple responses over one ROUTER socket.
fbzmq doesn't modify or introduce any communication pattern behavior between sockets.
from fbzmq.
Related Issues (12)
- fbzmq publisher unable to publish on topic HOT 4
- Compilation error on PowerPC HOT 3
- error: lambda capture 'kCount' is not required to be captured for this use HOT 7
- https://www.facebook.com/erdy.erdy.526438 HOT 1
- Pass
- Add conan support to our cmake HOT 1
- support Windows platform? HOT 1
- Update deps_common.sh, please HOT 1
- Building within Docker container HOT 7
- fbzmq memory model HOT 5
- fbzmq threading model HOT 4
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 fbzmq.