kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gwen Shapira <g...@confluent.io>
Subject Re: Kafka null keys - OK or a problem?
Date Mon, 10 Oct 2016 02:59:22 GMT
Kafka itself supports null keys. I'm not sure about the Go client you
use, but Confluent's Go client also supports null keys

If you decide to generate keys and you want even spread, a random
number generator is probably your best bet.


On Sun, Oct 9, 2016 at 6:05 PM, Ali Akhtar <ali.rac200@gmail.com> wrote:
> A kafka producer written elsewhere that I'm using, which uses the Go kafka
> driver, is sending messages where the key is null.
> Is this OK - or will this cause issues due to partitioning not happening
> correctly?
> What would be a good way to generate keys in this case, to ensure even
> partition spread?
> Thanks.

Gwen Shapira
Product Manager | Confluent
650.450.2760 | @gwenshap
Follow us: Twitter | blog

View raw message