Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance: Remote EJB x Web Services

 
Aurelio Calegari
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Web Services Gurus,

I'm almost positive that web services have better performance over the network compated to EJB Remote calls.

Can anyone confirm that or point if I'm wrong? Do you know a web site or article which compare their performance ?

Thanks very much in advance

Aurelio
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Aurelio Calegari:
I'm almost positive that web services have better performance over the network compated to EJB Remote calls.


I would have guessed quite the opposite - XML adds a huge bloat compared to binary serialized data and XML marshalling and un-marshalling tends to be much slower than binary serialization and de-serialization. and this paper Comparison of Web Services, Java-RMI, and CORBA service implementations corroborates that - web services are 2 to 10 times as costly as Java RMI or CORBA.

This is why it is important to keep web services as coarse grained as possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic