Kafka - Advanced Stream Processing
You want to send a complex object Person{name, age} through Kafka. Which approach best uses custom SerDes?
- Create a
PersonSerializerthat convertsPersonto JSON bytes. - Create a
PersonDeserializerthat converts JSON bytes back toPerson. - Register these SerDes in Kafka producer and consumer configs.
What is the main benefit of this approach?
