Hey, Is it possible to add key to a Kafka message? Looking in the code it looks like it isn’t possible:
if (values !== undefined) {
for (const value of values) {
//@ts-ignore
headers[value.key] = value.value;
}
}
}
topicMessages.push({
topic,
messages: [
{
value: message,
headers,
},
],
});
}
responseData = await producer.sendBatch({
topicMessages,
marcus
September 27, 2022, 8:38am
2
Hey @jbacklund ,
I am sorry to say but it looks like our current Kafka node implementation does not support message keys. I converted your question to a feature request. Make sure to upvote it yourself.
Thanks for the response. I have created a PR with a fix.
n8n-io:master
← jbacklund:feature/add-key-kafka-node
opened 09:35AM - 27 Sep 22 UTC
Add key to message.
Add key to properties.
https://community.n8n.io/t/add-ke… y-to-kafka-message/18134
3 Likes
jan
October 14, 2022, 8:43am
4
Got released with [email protected]