Search⌘ K

Producer Serialization

Explore Kafka producer serialization focusing on Avro, a language-neutral framework that embeds schema and supports schema evolution. Understand how Avro works with Kafka's Schema Registry to manage schemas efficiently, allowing flexible message formats in scalable data pipelines.

We'll cover the following...

Kafka comes with serialization classes for simple types such as string, integers, and byte arrays. However, one has to use a serialization library for complex types. We can use JSON, Apache Avro, Thrift or Protobuf for serializing and deserializing Kafka messages.

Using Avro with Kafka

For this course, we’ll use Avro for serialization and deserialization and discuss it in the context of Kafka. Apache Avro is a language neutral serialization framework and thus a good choice for Kafka. The Avro project was developed by Doug Cutting of Hadoop fame and later incubated at Apache.

Avro provides robust support for schema ...