kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muqtafi Akhmad <muqt...@traveloka.com>
Subject Re: Message Id in Kafka Keyed Message
Date Tue, 08 Sep 2015 04:57:24 GMT
I just figured out that it is ok to assign random value as message key
after reading kafka protocol guide (
https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol
)

Thank you,

On Mon, Sep 7, 2015 at 10:26 AM, Muqtafi Akhmad <muqtafi@traveloka.com>
wrote:

> hello all,
>
> I've read KeyedMessage in doc, in which KeyedMessage is described as tuple
> of topic, key, and value and its said that
>
>> If a partition key is provided it will override the key for the purpose
>> of partitioning but will not be stored.
>
> Does it means that it is safe to just randomize value of key? is there any
> rules/ restrictions about key's value?
>
> Thank you,
>
> Regards,
>
> --
> Muqtafi Akhmad
>



-- 
Muqtafi Akhmad
Software Engineer
Traveloka

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