You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Yu, Libo " <li...@citi.com> on 2013/10/19 20:02:21 UTC

KeyedMessage question

Hi team,

For the message type in KeyedMessage, I can use String or byte[].
Is there any difference in terms of the actual data transferred?



Regards,

Libo


Re: KeyedMessage question

Posted by Neha Narkhede <ne...@gmail.com>.
Not really. If you use a String key, you will have to use a StringEncoder
for the key serializer. The key serializer turns any key into a byte array.

Thanks,
Neha


On Sat, Oct 19, 2013 at 11:02 AM, Yu, Libo <li...@citi.com> wrote:

> Hi team,
>
> For the message type in KeyedMessage, I can use String or byte[].
> Is there any difference in terms of the actual data transferred?
>
>
>
> Regards,
>
> Libo
>
>