kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeep s <sreekumar.prad...@gmail.com>
Subject Kafka stream specify key for message
Date Thu, 14 Jun 2018 03:31:11 GMT
Hi,
In kafka stream, when we use *to *method for sending values to a topic, is
there a way to mention the message key .

.to(outputTopic, Produced.with(byteArraySerde, itemEnvelopeSerde));

In Produced class , i cant find a way to set the key.

https://kafka.apache.org/10/javadoc/org/apache/kafka/streams/kstream/Produced.html

Thanks

Pradeep

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message