Giter Site home page Giter Site logo

Comments (7)

ifandelse avatar ifandelse commented on July 19, 2024

@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.

estaylorco avatar estaylorco commented on July 19, 2024

@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.

ifandelse avatar ifandelse commented on July 19, 2024

@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.

estaylorco avatar estaylorco commented on July 19, 2024

@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.

ifandelse avatar ifandelse commented on July 19, 2024

@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.

estaylorco avatar estaylorco commented on July 19, 2024

@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.

ifandelse avatar ifandelse commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.