
kryo - issue #95
Ability to indicate the type of Kryo encoding in the serialized message
Imagine that we have a use-case where serializer and deserializer are configured and operated by two (or more) network nodes, controlled by different parties. In such a situation it is important that Kryo's are configured in a 100% compatible way, otherwise the deserializtion process will fail. But what happens if one of the sides changes something in the configuration, e.g. enables compression or drops using varint encoding for speed, etc?
It could be interesting if it would be possible to indicate in the message (at the beginning?) what are the major parameters and their values used for serialization. E.g. compression - on/off, varInt - on/off, references - on/off and so on. Then the receiving side can analyze this information and dynamically configure its Kryo instance to be compatible with the encoding/mode used by the Kryo instance used in serializer.
Comment #1
Posted on Nov 30, 2012 by Grumpy CamelThere are so many way to configure Kryo, I have a feeling this should be application specific. Eg, individual serializers can be configured.
Status: Accepted
Labels:
Type-Defect
Priority-Medium