.Net Remoting - Approaches
to access server objects - Dec 29, 2009 at 15:33 PM by Nishant Kumar
Approaches to access server objects in Remoting.Net
First one to have copy of server
object on the client machine and accessing local copy of object to call method.
This method is good suited when the object is not very big not having too many
methods. Copying big object is wastage of client resources which includes
network resources and processing time.
The second approach is to create a proxy object that returns reference of all
the methods and properties of server object in the client domain. The proxy
acts as local object, fake server object on the client machine. Any method call
from the client will be served by proxy which in turn access server domain to
get response from server object. This approach is good when the object is big
with many methods.
|