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 <[email protected]> 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
