3 ms·
The author mentioned msgpack, what else would someone suggest for low-latency use cases?
by brentru 6y ago
The author mentioned msgpack, what else would someone suggest for low-latency use cases?
- kevin_thibedeau 6y agoPick your poison: https://en.wikipedia.org/wiki/Comparison_of_data-serialization_formats https://en.wikipedia.org/wiki/Comparison_of_data-serializati... The big choice is whether you want a schema or not.
- shaicoleman 6y agoSerialization/deserialization is rarely the bottleneck, so don't prematurely optimise for it. The candidates for fast serialization/deserialization that have implementations for all major programming languages are: * Plain JSON using the simdjson library, optionally in NDJSON format (line separated), optionally compressed with LZ4. * CBOR (like msgpack but with more datatypes/features) * msgpack * Protocol Buffers (optionally with gRPC)