chat: RMI or normal stream ?

im thinking about changing my chat connection to RMI. up to now i only submit strings where commands and messages are concatenated. but i can not measure, how much overhead is produced using rmi or if there are any other reasons not to use it.

some experiences would be a great help.

Personally, if you’re doing game networking, I say don’t bother. For many things, it’s a time-saving abstraction, but it IS low performance, which means you won’t be able to use it in most games - so even if you start using it, you eventually have to do all the work of coding something better sooner or later anyway.

It’s a good starting point if you want to do lots of remote method calling (um, funny that, given the name), although again performance can be an issue - but it’s a lot better than your own attempt would be for the first 5 or 6 versions :).

Several people here have used it successfully for game situations where perfroamcen didn’t matter, and typically where it was less hassle to do remote method invocation than to write a protocol, and handlers, and … and … etc.

because i only want to use it in a non-gaming chat system i only think about performance issues in view of the size network chunks…