I have seen the question: Communication between two separate Java desktop applications (answer: JGroups) and I m thinking about implementing something with JavaGroups or straight RMI but speed is of the essence. I m not sending large amounts of data around (content of MIDI Messages, so 3 bytes each, no more than say two messages every three milliseconds) and this will be all on the same machine. Is it daft to think that RMI/JGroups on the same physical machine will be slow?
(My thought is that I can t afford more than 1ms of latency, since I ve already got some, but I m not sure how to best talk about speed in this context.)
I guess my real question is: are there any options for interapp communication in Java that go through something FASTER than TCP/IP? I mean things already implemented in Java, not JNI possibilities that I d need to implement :)
I know, don t optimize early and all that, but also better safe than sorry.