Closed rcnespoli closed 1 year ago
Hi @rcnespoli. Thanks for the detailed report and apologies for the slow response. The message you received encodes an object container file, this is why you need to use a BlockDecoder
to read it. Kafka message typically encode a single object, in which case you would be able to use the simpler approach (trimming the prefix from the buffer first).
If you have control over the publisher, I'd recommend switching to this lighter encoding. It would also reduce the size of messages: right now the schema is included in each one. Otherwise I'm afraid you'll need to stick to the block decoder implementation. Consider also checking if the message contains more than one record ('data'
event on the decoder).
Hi, no problem. But my question is how can we create the same message using lib? To decode I'm doing with lib and all thing is working fine. But to create some test scenarios I need create some messages fixtures.
Hi, I'm receiving this error when I try to decode. Error message:
Buffered message:
Unbuffered message:
Schema:
Code(doesn't working)
Code(working)
The code that is working it's hard to handle a batch messages from kafka. Could you help me?