Reputation: 14303
I want to serialize a POJO to Kafka using Avro but I do not want to generate the POJO. There are several reason that I do not want to use generated code.
Upvotes: 1
Views: 1543
Reputation: 14303
You can use Jackson Kafka Avro serializer which does exactly that. It (de)serializes the data using Jackson so you can easily map the POJOs to Avro schemas and back. Moreover, it has first class Kotlin support.
Upvotes: 1