Thanks for the info Fokko.

My issue is not so much going from Avro to JSON, or standardizing all my
Java DTO's to be generated by Avro.

Instead i have many legacy DTO's that are mapped by Jackson to JSON.   Those
DTO's cannot change to accommodate Avro.   As well there are many Domain <->
Jackson DTO converters.    So the deepens the investment in our current
DTO's.

Now we want to send Kafka messages using Avro, and ideally we would like to
continue using our existing DTO's to represent parts of the Avro messages,
where applicable (instead of having to create new DTO's and converters that
are specialized for Avro).

After posting i realized that one solution would be to have Jackson support
for serializing to Avro.   And it turns out there is a such a thing...
https://github.com/FasterXML/jackson-dataformats-binary

I will play with that to see if it satisfies my needs.

Though there does seem to be an open issue that is causing issues supporting
Avro 1.9+...
https://github.com/FasterXML/jackson-dataformats-binary/issues/167

Thank you.




--
Sent from: http://apache-avro.679487.n3.nabble.com/Avro-Users-f679479.html

Reply via email to