?
Solved

HTTP 1.1 or RMI

Posted on 2003-12-10
9
Medium Priority
?
236 Views
Last Modified: 2011-04-14
Hi all
which of both is faster in order to access application server and why ?

1. HTTP 1.1 which open a connection without closing it
2. RMI

which one and why?
0
Comment
Question by:dannysh
[X]
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
  • 4
  • 3
  • 2
9 Comments
 

Author Comment

by:dannysh
ID: 9911751
I forgot the data I send is an XML
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9911774
HTTP cos it does much less handshaking and validation...
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9911778
DO you have any firewalls / security requirements? Because then only HTTP (or HTTP/s) will work.
RMI is faster, because you can send an XMLDocument object over the network, which might take more network bandwidth but will save you the need to serialize it on the client and parse it on the server.
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 35

Expert Comment

by:TimYates
ID: 9911791
> but will save you the need to serialize it on the client and parse it on the server

Only because RMI does this for you...  it will still get serialized and deserialized...
0
 

Author Comment

by:dannysh
ID: 9911836
Hi

>> DO you have any firewalls ...
is it a problem cause if I open port 1099 it should work no ?

>> Only because RMI does this for you...  it will still get serialized and deserialized

as I understand no matter which one I will use the same work done, am I right?


0
 
LVL 9

Expert Comment

by:vzilka
ID: 9911891
No.
Serializing the Document is not the same as sending the XML as String and then reparsing it.
It is much more efficient to send the Document object. This is why it takes more network bandwidth.

The Document object is not serializable according to the spec. But, all implementations I know of are defining Document as serialized.
0
 

Author Comment

by:dannysh
ID: 9911913
Hi
And what about the firewall , If I will open port 1099 (used for the lookup) is it fine ?
0
 
LVL 9

Accepted Solution

by:
vzilka earned 200 total points
ID: 9911941
You will have to configure it by hand. Not all sites allow this.
But if you configure the firewall, it will work.

However, if this is a remote site, and you pass other routers and stuff in the middle, you might get stuck.

Why think about HTTP anyway?
0
 

Author Comment

by:dannysh
ID: 9911984
NO I am not thinking about using HTTP, I will use RMI.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

771 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