diff options
author | Alex Couture-Beil <alex@mofo.ca> | 2015-01-09 10:54:31 -0800 |
---|---|---|
committer | Alex Couture-Beil <alex@mofo.ca> | 2015-01-09 10:59:42 -0800 |
commit | 9c643e0218b7471fa7f8fd7cd650710c9ba35184 (patch) | |
tree | 6663185a6e1a14a5421dd3e7efd29cdb913abd63 /kafka/queue.py | |
parent | 02c2b469003e2ddcb051dbb4d95977137050c19f (diff) | |
download | kafka-python-9c643e0218b7471fa7f8fd7cd650710c9ba35184.tar.gz |
Randomize start by default for SimpleProducer
random_start=False is dangerous. Any client that initializes a
SimpleProducer and performs only a single publish batch will always go
to partition 0. A common use-case for this is command line utilities,
or web-servers which are unable to cache the SimpleProducer instance
between calls.
Diffstat (limited to 'kafka/queue.py')
0 files changed, 0 insertions, 0 deletions