Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sockets vs. RMI  RSS feed

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can somebody please post a link to a tutorial that deeply discusses the differences between Sockets and RMI, the advantages and disadvantages of each, why one must be used instead of the another ? And other important issues you think that matter.

Or if there's no link, can you please post them here ?

Thanks in advance ...
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there are many cases where one must be used over the other. RMI is built on top of sockets, so it operates on a higher level. It allows you to deal with Java objects and method invocations, instead of having to send bytes, like you would do with sockets. RMI is a Java-only technology, though (it's using object serialization), so you can connect only to other JVMs, not processes written in other languages. Its convenience also comes at the price of a certain overhead (although not a huge one), so for ultimate performance sockets may be better.
[ January 23, 2008: Message edited by: Ulf Dittmer ]
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!