If you want to communicate on one computer, you can try something like the Java Chronicle, which can support more than a million constant messages per second with periods of microsecond shutdown for several microseconds.
If you need low latency between machines, you need to look very carefully at your equipment. For commercial equipment, your round-trip latency will be 100 microseconds. With special equipment, you look closer to 20 microseconds.
Or you can chat in one window and get significantly lower delays .;)
Peter Lawrey
source share