Giter Site home page Giter Site logo

Chaining server side about meteor-promise HOT 3 CLOSED

deanrad avatar deanrad commented on August 19, 2024
Chaining server side

from meteor-promise.

Comments (3)

deanrad avatar deanrad commented on August 19, 2024

Hmm, I know I set the package up to be client and server, but I wonder if I should reconsider that now.

The reason being - it's strange to make a method call from the server side, the approach described here shows how to maintain a method that can be called directly - without Meteor.call, or Meteor.promise.
http://stackoverflow.com/questions/23188424/meteorjs-meteor-methods-call-from-server-to-server

What do you think- if you want to try to support your use case from the server, let me know a bit more, maybe create a failing test in a PR ?

from meteor-promise.

pociej avatar pociej commented on August 19, 2024

@deanius , yep i know that it is strange to call methods from server to server (anyway in tutorial , you called 'inspiration' they calling methods server side ;) ) , but it is detail.
You can easy change you package and call server side defined functions instead of methods, youwill have same problem , Imo meteor needs own implementation of server side promises .
In regards to the cleint side usage of package it is also strange , calling meteor methods one after another generates unnecessary client-server ping pong . In most cases you want to call one method which chain few tasks server side and wait for response . But to do that you need server side implementation of promises ( or use other tool ).

from meteor-promise.

deanrad avatar deanrad commented on August 19, 2024

Meteor's support for ES6 (including Promises, I assume), in version 1.2 may make this package obsolete- we'll see what they come up with.. Thanks for your very valid points!

from meteor-promise.

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.