snuspl / dolphin

14 stars 2 forks source link

Reduce the overhead of multiple serializations when sending messages #156

Open jsjason opened 8 years ago

jsjason commented 8 years ago

When messages are prepared to be sent, first the key/preValue/value objects are encoded to byte arrays and then serialized again via Avro. This becomes a problem when the message size is big. We should avoid this series of serializations and minimize the serialization overhead.