Are you referring to the use of promises as RPC? Not sure I understand. :S Calling a promise as a remote procedure call?
On 31 May 2014 22:39, Marcus Ottosson <[email protected]> wrote: > I think both ways work great > > Aw, that’s no good. :) I’m looking for actual cases where one is more > appropriate than the other, not which one is the silver bullet of computing. > > It’s a discussion on distributing work via a chat-like interface, not very > generalised I’d think, but if you’d like let’s throw in some numbers: > > In the conversation, there’d be around: > > - 500 peers in total > - 50 of them being active within any given second > - within which 2 tasks are being distributed continually > - Tasks are at the size of “hello world”, “create directory”, “list > directory”, “write metadata”, “add 1 to 1” etc.. > - ..each taking up a maximum of 1 second each. > > Pros RPC: > > - Familiar, little initial learning curve > > Cons RPC: > > - Hockey-stick complexity (easy at first, difficult at last (e.g. > debugging when routes extend past point-to-point)) > > But then again, if you made an RPC function called send() which is > oneway and takes some data structure, again what is the difference between > the two? > > Yes, precisely. What is the difference? That’s what I’m looking to find > out. :) > > > > On 31 May 2014 22:24, Justin Israel <[email protected]> wrote: > >> I've done RPC, and I have done message passing. I don't really think >> about it as one being better than the other. I just think about it as the >> right one for the job. But like I said, depending on the implementation, >> RPC can really be just message passing with syntactic sugar that makes the >> interface more like a function call as opposed to a send operation with a >> data structure. If you aren't waiting on the result, how different are the >> two really? I get that it can be more flexible to not have predefined >> interfaces for all your RPC functions, whereas you can just work with a >> single send() and pass data structures in message passing. But then again, >> if you made an RPC function called send() which is oneway and takes some >> data structure, again what is the difference between the two? The RPC >> version just has a predefined contract about what send() is and what it >> accepts. >> >> If my system is primarily concerned with just sending oneway messages all >> the time to be queued/routed/dispatched, then I would probably lean more >> towards a pure zeromq lower-level approach. But I can't talk about it in a >> generalized conversation, with a generalized application, about which is >> best. I think both ways work great. >> >> >> >> >> On Sun, Jun 1, 2014 at 9:10 AM, Marcus Ottosson <[email protected]> >> wrote: >> >>> Well, I take it you are both familiar with working with RPC, but are you >>> also familiar working without? >>> >>> I think to make a fair judgement, one would have to at least try both to >>> an equal degree. I've had a hard time finding any benefits of using it >>> other than convenience, and I'm not quite convinced. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCjisSNmOWFeoza_tGQYRpKxFM0GhDeXOLSXP8EEhLFpQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCjisSNmOWFeoza_tGQYRpKxFM0GhDeXOLSXP8EEhLFpQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2wVmfhMswienJFxA2B1u_6k2Lr-2VgRFKXXvZffyyekw%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2wVmfhMswienJFxA2B1u_6k2Lr-2VgRFKXXvZffyyekw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > [email protected] > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBaZQEk7wvUNhZMD%3DBm5WmpQs%2B0kMfQKshzeoz8YXTwPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
