-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance degradation of producer when having many topics #943
Comments
Here is the result of py-spy profiler while running aiokafka producer. We can see that
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When a kafka cluster has many topics like 5k or more, the performance of the producer degrades drastically.
I compared the performance with that of kafka-python. Here is the summary.
aiokafka producer's perf is almost 1/10.
In my environment, kakfa cluster has more than 5000 topics.
I noticed the number of topics affects
producer.send
function every time. SO, I will send PR to fix this.Expected behaviour
Even when # of topics becomes large, aiokafka producer is faster than kafka-python producer.
Environment (please complete the following information):
python -c "import aiokafka; print(aiokafka.__version__)"
):kafka-topics.sh --version
):Reproducible example
To measure performance I used the code here https://github.com/abhishekray07/kafka-client-benchmarks/tree/master
The text was updated successfully, but these errors were encountered: