Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

low latency connection

Posted on 2010-09-09
14
468 Views
Last Modified: 2012-06-22
In low latency connection why do we prefer  RMI over IIOP and  Synchronous web service  invocation ?
0
Comment
Question by:cofactor
  • 8
  • 5
14 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33634205
Synchronous web service is a expensive process. See it this way.
1) at client side, Your proxy stubs (got using wsdl2java) will be serialized to xml soap request (unmarshalling, xml parsing)
2) xml will be deserialized to Objects at the server side (marshalling, xml parsing)
3) then corresponding method will be invoked on server side
4) its response will be serialized again at server side (marshalling, xml parsing)
5) deserialized again at client side to get the response in proxy objects (unmarshalling, xml parsing)

It naturally creates high latency. XML parsing is expensive

In case of IIOP also, the request is made in some format which needs to be marshalled and unmarshalled at both sides.


0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33634235
I don't think RMI-IIOP and low latency is in any way related for better thouroughput!

may be the preference is because of the additional overhead( data ) in RMI-IIOP

low latency prefered in synchronous comm because in a high lateny connection the possibility of failure in transferring the results is more which may seem the total request failed...
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33634252
I can't think of the XML parsing impacts the latency because the parsing happens only at the client or server not in the network... shouldn't matter IMHO
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 40

Expert Comment

by:gurvinder372
ID: 33634267
<<parsing happens only at the client or server not in the network>>
yes it happens only at client or server, but it is expensive. Just try marshalling a collection of more than 100 items, you will get to know the impact.

0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33634278
>>Just try marshalling a collection of more than 100 items, you will get to know the impact.

what I am trying to say is, the impact is on the client/server not in the network, the latency matters when the size of the data and the time it takes to transfer!
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33634289
It all adds to the latency.
When the web-service is invoked, all the 5 steps mentioned above happens. in those 5 steps i am not even including the network latency. It is extra.


0
 

Author Comment

by:cofactor
ID: 33634307
could you guys tell me what exactly low latency connection ? Can I call slow speed GPRS connection as low latency connection ? DSL Broadband as high latency connection ?
>>>high lateny connection the possibility of failure in transferring the results is more
failure ? why do you think so ?
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33634313
>>in those 5 steps i am not even including the network latency

the question is just about network latency( why a low latency conn prefered for... ) not the other extra stuffs you mentioned!

the marshalling/unmarshalling, serialization/deserialization happens in async requests too... they are specific to client/server implmentation...
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33634322
>>Can I call slow speed GPRS connection as low latency connection ? DSL Broadband as high latency connection ?

its the other way around, low latency is high speed!
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 150 total points
ID: 33634329
>>failure ? why do you think so ?

because, in a slow connection, the possibility of timeouts is more based on the traffic... a slight increase in traffic will lead into more timeouts!
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33634535
<<the question is just about network latency>>
Can you show that to me in the original question?
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33635132
>>Can you show that to me in the original question?

read the question,

low latency connection Question: In low latency connection why do we
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33635252
Why am i not able to see "Network latency" in his question?
Are you saying latency is always related to network?

I agree with your point though that being 'Synchronous' is big part of the reason, which i missed.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33635289
>>Why am i not able to see "Network latency" in his question?

read the question fully,

>>RMI over IIOP and  Synchronous web service  

distributed applications communicate through a network.

>>In low latency connection

network connection for these apps!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
use lov values 2 61
tomcat startup error 5 100
how to install java on RHEL image on EC2 4 39
throw exception 21 58
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question