mumrah/kafka-python — pull request #139 by alexcb (2014-03-12 01:17:12+00:00)
Title: SimpleProducer randomization of initial round robin ordering

Hello Folks,

I've noticed that the simple producer will always publish to partition 0, then 1, etc.

To achieve a better uniform distribution of messages per partition, would you consider
randomizing the list of partitions first? This would be especially helpful for cases
where the publisher only publishes a single message before destroying the SimpleProducer instance.