RMI with Pyro4

Pyro is short for Python Remote Objects. It works exactly like the Java RMI (short for Remote Method Invocation) allowing to invoke a method of a remote object (belonging to a different process) exactly as if the object were local (belonging to the same process in which the invocation runs).

The use of an RMI mechanism, in an object-oriented system, involves significant advantages of uniformity and symmetry in the project, as this mechanism enables the modelling of interactions between distributed processes using the same conceptual tool. 

As you can see from the following diagram, Pyro4 enables objects to be distributed in a client/server style; this means that the main parts of a Pyro4 system may switch from a client caller to a remote object, which is called to serve a function:

RMI

It is important to note that during the remote calling, there are always two distinct parts: a client and a server that accept and execute the client call.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.166.7