8 ms·
Network i/o puts a much bigger constraint on latency and throughput than serialization, so in practically all cases serializing to ByteBuffers using the standar
by pron 14y ago
Network i/o puts a much bigger constraint on latency and throughput than serialization, so in practically all cases serializing to ByteBuffers using the standard ByteBuffer API (without resorting to Unsafe) would be just fine.
- mjpt777 14y agoState of the art network hop is less than 3us so this is relevant. For on box IPC which can be as low as 100ns then very very relevant.
- shrughes 14y agoCPU can easily be the throughput bottleneck if you add enough network bandwidth. It doesn't just happen in Java, it happens in C++ stuff too, and it can even be the throughput bottleneck for data going from the right kind of disk to the network -- that's why zero-copy I/O exists.