• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

SOAP slower than Java RMI?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw on another post that SOAP can be 10 times slower than java RMI. Is this true in general, or is that a cieling?
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is SOAP slower than RMI? Well, yes, of course. Ten times slower? That depends. SOAP is designed for using XML (ASCII) and language independence, not performance.
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure how you make that comparison.
Both SOAP and RMI make network calls so there is a performance issue there.
SOAP may be slower since you may need to parse XML and create object but it also allows for asynchronous messages so you don't have to wait for results to complete. I know that RMI has callbacks but those are extremely slow.
So as always in this field the answer depends on what your are trying to achieve.
 
Glenn Murray
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not "may be slower". It will be slower, for the reasons Aleksey pointed out. The original question is about RMI, not asynchronous messaging or "network calls".
In an abstract, apples-to-apples comparison, if you use SOAP to do remote procedure calls with Java on both ends, then RMI will be faster every time.
This is not to say that for any particular application RMI is superior; as Aleksey also pointed out, it all depends.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that the main point of SOAP is being lost, in that it allows inter-system communication and RPC that is language independent. Sure, RMI will always beat out SOAP. Then again, RMI will usually beat CORBA with an all-Java architecture. (I believe, anyway) Performance is A goal, but it isn't the end-all where SOAP is concerned.
Cheers,
Andrew
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More on Aleksey's point , the IBM article on Performance testingdetails the "points of failure" ( refer figure 2).
And in terms of numbers , the article on S-O-A ( next hip thing according to gartner )vincihas references to how SOAP , RMI fared on a head to head test
[ January 22, 2002: Message edited by: Andy Rodriguez ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic