andrea-veritas / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Ability to indicate the type of Kryo encoding in the serialized message #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by romixlev on 22 Oct 2012 at 12:54

GoogleCodeExporter commented 8 years ago
There are so many way to configure Kryo, I have a feeling this should be 
application specific. Eg, individual serializers can be configured.

Original comment by nathan.s...@gmail.com on 30 Nov 2012 at 10:12