[QUESTION] Is aiokafka consumer thread safe? #959
Unanswered
DavidOsparks
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In python, all the "aio/async" libraries run over an event loop. An event loop is always run by a single thread, managing multiple concurrent queries. So the first sentence of the documentation
should be enough to indicate about the threading model |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
confluent-kafka-python says "Producer, Consumer and AdminClient are all thread safe."
kafka-python says "while it is possible to use the KafkaConsumer in a thread-local manner, multiprocessing is recommended."
However, I cannot find any description about thread safety in the document of aiokafka, so I worry about if AIOKafkaConsumer is thread safe? Whether it is or not, maybe it should be mentioned in the document.
Beta Was this translation helpful? Give feedback.
All reactions