I am currently decide what kind of communication method/network protocol I am going to use for a new project. What I can tell you about this project is that: - It is Android/java based, using X amount of Android devices - These devices should be able to send strings to each other over a local network. We are talking about small strings here. Small as in less than 100 characters. - The amount of packages/transmissions being sent can vary "A LOT". I can't say how much unfortunately, but the network protocol needs to be as scalable as possible.
I have researched different kinds of possible solutions and is now deciding wether to use "Sockets" or "RMI"
As I have understood about RMI:
- It is easier than Java sockets to implement and maintain (smaller amount of code)
- It is "a bit slower" than sockets, as it is a new "layer" build on top of Sockets
- There may be some scalability issues (if this is true, how "serious" is it?) as it creates a lot of new sockets, resulting in Exceptions.
Obviously the system needs to run as smooth as possible, but the main objective is to make it scalable so it can handle more Android devices.
EDIT: The system the system is not "peer-to-peer". All of the android devices should be able to be configured as the server.