kafka icon indicating copy to clipboard operation
kafka copied to clipboard

Is it possible to serialize a producer message?

Open rotosonic opened this issue 8 years ago • 1 comments

Great package. Is it possible to serialize a producer message using some like https://www.npmjs.com/package/json-serialize ? return producer.send({ topic: 'kafka-test-topic', partition: 0, message: { value: 'Hello!' } });

rotosonic avatar Dec 20 '16 20:12 rotosonic

Message value is sent as a binary so you can serialise it any way you prefer.

oleksiyk avatar Dec 21 '16 06:12 oleksiyk