>
> Not sure I understand. :S Calling a promise as a remote procedure call?

Ah I was referring to your question above that sparked the RPC discussion:

> I’m thinking promises are good for in-process asynchronism and less so for
> the distributed kind, due to the overhead of making a remote request.
>


Are you using it mainly for RPC?







On Sat, May 31, 2014 at 5:48 PM, Justin Israel <justinisr...@gmail.com>
wrote:

>
>
> On Sun, Jun 1, 2014 at 9:42 AM, Marcus Ottosson <konstrukt...@gmail.com>
> wrote:
>>
>>
>>>
>>> Pros RPC:
>>>
>>>    - Familiar, little initial learning curve
>>>
>>> Not sure what the learning curve is, unless you are referring to
> specific products that come with different degrees of set up to implement
> the RPC
>
>
>>
>>>
>>> Cons RPC:
>>>
>>>    - Hockey-stick complexity (easy at first, difficult at last (e.g.
>>>    debugging when routes extend past point-to-point))
>>>
>>> Why is this hard to debug? It would be the same as a message being sent.
> It goes to some other endpoint. All that is different is the interface for
> which the call is made.
>
>
>>
>>>
>>>  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. :)
>>>
>> The question was rhetorical. I don't see the difference other than some
> sugar on the call site.
>
>
>>  ​
>>>
>>>
>>>  On 31 May 2014 22:24, Justin Israel <justinisr...@gmail.com> 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 <konstrukt...@gmail.com
>>>> > 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 python_inside_maya+unsubscr...@googlegroups.com.
>>>>>  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 python_inside_maya+unsubscr...@googlegroups.com.
>>>>  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*
>>> konstrukt...@gmail.com
>>>
>>
>>
>>
>> --
>> *Marcus Ottosson*
>> konstrukt...@gmail.com
>>
>> --
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBaZQEk7wvUNhZMD%3DBm5WmpQs%2B0kMfQKshzeoz8YXTwPA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBaZQEk7wvUNhZMD%3DBm5WmpQs%2B0kMfQKshzeoz8YXTwPA%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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2OuR2dZaFaYGhaSXk0Ut_78KeLcyijN-bTM5Vo5U2%3DYA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2OuR2dZaFaYGhaSXk0Ut_78KeLcyijN-bTM5Vo5U2%3DYA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-tony

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsS-DgUrt950gyP8HbMU%3D1oR%2BAzAyKc4%2B9H6OOkqtqa3-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to