Y
yosi.kal
Hi,
I am writing a Java client server application in which the clients
resides in a long physical distance from the server. For example,
clients can be in India while server is San Jose. There is a secured
TCP connection between the clients and the server and the connection
between clients and server is done using RMI.
The thing is I noticed a performance drop due to the fact that RMI is
doing two round trips in order to execute single method: one round
trip is to create the object (Naming.lookup) and then another one is
to invoke the method on the object. Each round trip takes an overhead
of 1-2 seconds just to get from the client to the server. Logically, I
don't have any sequential calls on the same object so its actually a
performance cost I pay for each method invocation (every time user is
opening a window or something like that).
Is there any way I can combine the two round trips into one in order
to save one round trip cost?
Thanks
I am writing a Java client server application in which the clients
resides in a long physical distance from the server. For example,
clients can be in India while server is San Jose. There is a secured
TCP connection between the clients and the server and the connection
between clients and server is done using RMI.
The thing is I noticed a performance drop due to the fact that RMI is
doing two round trips in order to execute single method: one round
trip is to create the object (Naming.lookup) and then another one is
to invoke the method on the object. Each round trip takes an overhead
of 1-2 seconds just to get from the client to the server. Logically, I
don't have any sequential calls on the same object so its actually a
performance cost I pay for each method invocation (every time user is
opening a window or something like that).
Is there any way I can combine the two round trips into one in order
to save one round trip cost?
Thanks