Comments (2)
@mark-hahn Great question. In the past I've had some prototype implementations to federate postal between processes in node and also client/server, but each required an underlying transport - sockets, redis, rabbitMQ, or something lower level, etc. I wish I had something ready for you in that dept, though it wouldn't be hard to manually set that sort of configuration up. When I've needed to manually bridge across boundaries, I've often set up wire taps (see also this) - filtering to the specific channel and/or topics I want to forward over the transport, and just push the full envelope as the payload. The listener on the other end (socket.io connection, for example) simply re-publishes the envelope via postal.publish
, etc.
I do plan to take my earlier ideas and create plugins for postal to allow for this sort of thing in the future, though that doesn't help at the moment. You are correct, though, postal.xframe can be used to federate postal between windows in the client (and also web workers). The API may get some TLC over the coming months (since I loathe deep namespaces....starts to feel like Java or C#), but it's been pretty solid for me thus far.
from postal.js.
Thanks for the info.
On Tue, Aug 6, 2013 at 8:45 PM, Jim Cowart [email protected] wrote:
@mark-hahn https://github.com/mark-hahn Great question. In the past
I've had some prototype implementations to federate postal between
processes in node and also client/server, but each required an underlying
transport - sockets, redis, rabbitMQ, or something lower level, etc. I wish
I had something ready for you in that dept, though it wouldn't be hard to
manually set that sort of configuration up. When I've needed to manually
bridge across boundaries, I've often set up wire tapshttps://github.com/postaljs/postal.js/wiki/postal.addWireTap(see also
this https://github.com/postaljs/postal.diagnostics) - filtering to the
specific channel and/or topics I want to forward over the transport, and
just push the full envelope as the payload. The listener on the other end (
socket.io connection, for example) simply re-publishes the envelope via
postal.publish, etc.I do plan to take my earlier ideas and create plugins for postal to
allow for this sort of thing in the future, though that doesn't help at the
moment. You are correct, though, postal.xframehttps://github.com/postaljs/postal.xframecan be used to federate postal between windows in the client (and also web
workers). The API may get some TLC over the coming months (since I loathe
deep namespaces....starts to feel like Java or C#), but it's been pretty
solid for me thus far.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-22227983
.
from postal.js.
Related Issues (20)
- How to publish data between Node.js modules? HOT 2
- Bower Release v2.0.5
- Competing consumers HOT 1
- Help improve the quality of the DefinitelyTyped (TypeScript) definitions
- postal.preserve: Still taking a ConduitJS dependency HOT 2
- Default Subscriber
- Stack overflow in IE 11 when publish called on channel with many pending unsubscribes
- Shouldn't postal.channel() implement the Singleton pattern? HOT 2
- Subscriber callback method can brake calling other subscribers HOT 1
- Devtools extension for Chrome
- Messages published inside a subscriber won't be passed to uncached subscribers
- why cache only for result === true
- postal.lodash.js Error: Module name "lodash/after" has not been loaded
- Is this project still active? HOT 6
- Wait for messages to be delivered and processed in unit tests
- timeStamp in envelope should honor timezone
- Timestamp missing on wireTap envelopes
- Thank you
- Regarding publish and subscribe, Important question
- How does postal.js support replay?
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 postal.js.