diff options
author | Linus Wallgren <linus.wallgren@gmail.com> | 2017-05-18 22:49:20 +0200 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-06-16 23:26:14 -0700 |
commit | 97261f491d02fb7f72ba30abcfc26240f520a9b4 (patch) | |
tree | f01f4d23df893acb4093c2e330730208e6c5e7f3 /docs | |
parent | 73d78bc76ade2b42abcdea32095d1df930e21c55 (diff) | |
download | kafka-python-97261f491d02fb7f72ba30abcfc26240f520a9b4.tar.gz |
Describe consumer thread-safety
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index 18f0721..550d246 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -109,6 +109,16 @@ client. See `KafkaProducer <apidoc/KafkaProducer.html>`_ for more details. ... producer.send('foobar', b'msg %d' % i) +Thread safety +************* + +The KafkaProducer can be used across threads without issue, unlike the +KafkaConsumer which cannot. + +While it is possible to use the KafkaConsumer in a thread-local manner, +multiprocessing is recommended. + + Compression *********** |