Hey there folks!
My team is working on migrating application code that handles wire
formatting of messages: serialization, deserialization, encryption, and
signature. We are moving to custom Ser/Des classes implementing this
interface
https://kafka.apache.org/24/javadoc/org/apache/kafka/common/serialization/Deserializer.html .
These features used to live in a library and we figure that using the class
implementations would give us more flexibility while keeping a canonical
implementation of what SerDes looks like in our organization.
Given that context, if there are any errors while processing the message on
the consumer, how can I access the original bytes of the message? We need
to access the original bytes because we would like to publish the original
message that was encrypted and signed to a deadletter topic to be processed
later on. Currently, the approach we considered viable, but an ugly
workaround, is to set a header during the deserializing with the origina...