Skip to content

Kryo serializer and converter for kafka and confluent

Notifications You must be signed in to change notification settings

mduhan/kafka-kryo-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-kryo-serializer

kafka-kryo-serializer offers sending object over kafka. It is very nuch space and time efficient compression rate for kryo is between 70 to 80%. This is very useful for sending huge payload >200 Mb via kafka.

Cloning the kafka-kryo-serializer

First obtain the code by cloning the Git repository:

Building kafka-kryo-serializer

  • cd kafka-kryo-serializer
  • mvn clean install

Serialize message on kafka producer

set serializer as kryo serializer

  • props.put("value.serializer", KryoSerializer.class);

Deserialize message on consumer

set serializer as kryo deserializer

  • props.put("value.serializer", KryoDeserializer.class);

kafka sink connect

set value converter as kryo in connector configuration

  • com.mduhan.confluent.connect.kryo.converter.KryoConvertor

Test cases

KryoTest

About

Kryo serializer and converter for kafka and confluent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages