• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX: RMI vs. Serialization

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I want to look at the assignment from RMI and serialization point of view. The Advanced Features of Java book from Sun says stg. like "Dont use RMI unless you see a significent benefit". So, the main adv. of RMI is clear that [BOLD]one doesn't need to encode/decode the request/response[/BOLD]; and the main disadvantage is [BOLD]being inefficient for transferring large amounts of data.[/BOLD].
I would like to hear about your insights about these two alternatives.
Cheers, Ulvi
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulvi
Don't forget that RMI also hides the detail of networking from you. Because it appears that you are just calling a normal method on a normal class, it can be easier for that junior programmer to understand.
Using sockets will generally use fewer resources all round, not just bandwidth and numbers of messages sent, but also fewer processes on the server, and fewer maintenance threads running.
The disadvantages for RMI are not a big concern in this case - we are only shipping very small messages around, and we are not expecting to have thousands of users.
Have I totally failed to give you a clear idea of which one to use? Good
Regards, Andrew
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic