Comments (7)
@estaylorco Thanks for the detailed explanation. I've been thinking of how I'd want to implement a request/response pattern as well - and I really appreciate hearing your thoughts on it. Lately I'd been leaning towards it being an add-on to keep core as minimal as possible, but I agree with you that it could make our lives easier to have. I'll dust off some of my old ideas, look more at your examples and also chat with a couple of friends who implemented their own approach to this in postal as well....and get some gists together to get your feedback. Bear with me - I have a 2 month old baby who can fight sleep like no other, so it's slow going for me for a bit. :-)
from postal.js.
@ifandelse O.K. That sounds good. Considering your two-month old, take your time. Glad to hear that you are open to the suggestion, though. The pattern is emerging more and more frequently.
Thank you.
from postal.js.
@estaylorco check this out and let me know what you think when you have time: https://github.com/postaljs/postal.request-response
from postal.js.
@ifandelse Wow! That's awesome! Using [pluggable] promises is so much more elegant. I just read through the documentation, and I like what I see. There a 7 instances in my application where I need request-response. I will introduce postal.request-response this weekend and give you feedback. Thanks so much for taking the time to introduce this functionality!
from postal.js.
@estaylorco just curious if you'd had a chance to see if the postal.request-response add-on worked out OK for you?
from postal.js.
@ifandelse Oh, man. Sorry about not getting back to you. Yes, I successfully incorporated request-response. It's perfect! I have a Durandal composition that, previously, asked a MultiAddress Widget for addresses over the '/addresses/request' topic, and got those addresses back over the '/addresses/response' topic. It was the perfect candidate to test postal.request-response, which made this scenario far less complex.
I'm actually in the process of converting all request-response implementations to postal.js.
Thanks for your hard work on this!
from postal.js.
@estaylorco Sweet! Glad to hear it's working out well! I'll close this - but keep me posted if you run into any issues. Thanks!
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.