pyro & parallel processing

Irmen de Jong irmen at NOSPAMREMOVETHISxs4all.nl
Mon Sep 16 13:18:08 EDT 2002


Syver Enstad wrote:
> Robin Becker <robin at jessikat.fsnet.co.uk> writes:
> 
>>Has anyone used pyro to do symmetric parallel processing. The pyro
>>framework is nice with master slave type applications, but the remote
>>objects don't seem to be able to message back to their invoker.
> 
> They can, checkout the callback examples in the Pyro distro. Basically
> what happens is that you pass a Pyro proxy as a parameter to the a
> method on the Pyro object. 

This is a good way of letting the 'other' Pyro object call methods on one
of your 'own' (or 'local') objects. It is a more symmetric way but
you have to pass callback object proxies as parameters.

The other - fully symmetric - way, is to build some Pyro objects
on both sides and register them all with the Name Server.
This way everybody can discover the other's objects by themselves.
You won't need to pass callback object proxies around.
Note that this requires a Pyro server (daemon) on all nodes,
but that is no different from the callback object solution.

Irmen de Jong

PS  the Pyro mailing list is usually a better place to ask questions
about Pyro, see http://lists.sourceforge.net/lists/listinfo/pyro-core




More information about the Python-list mailing list