I'm looking at the
org.apache.kafka.common.serialization namespace, and wondering what the relationships between
Serializer,
Derserializer, and
Serde are.
Serializer and
Deserializer seem pretty obvious as counterparts, but where does
Serde fit in? Is it just a thin wrapper around a
Serializer and the corresponding
Deserializer?
For example, the
Schema Registry's
Avro Serializers package has implementations of
Serializer and
Deserializer, but none for
Serde. Is this simply an oversight, or is the implementation of a
KafkaAvroSerde considered simple enough to be "left as an exercise to the reader"? If the latter, is there a good example of creating
Serde from
Serializer and
Derserializer?