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. For more options, visit https://groups.google.com/d/optout.
