Skip to content
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

How to improve the performance of high-level-producer #653

Open
JohnnyZHH opened this issue Apr 13, 2017 · 7 comments
Open

How to improve the performance of high-level-producer #653

JohnnyZHH opened this issue Apr 13, 2017 · 7 comments

Comments

@JohnnyZHH
Copy link

Hi

We tried performance testing using script high-level-producer.js under kafka-node-master/example, we set interval of sending message as the smallest value (1 or 0 ms), and each message size is 1k, then we found the fastest speed is only 651.7 messages/sec (0.6MB/sec). Seems it is too slow for KAFKA Node.js client, and seems the bottleneck is function send (), is there any method could improve the performance? Thanks!

@JohnnyZHH
Copy link
Author

Anybody could help to answer it? Thanks!

@hyperlink
Copy link
Collaborator

Any change with requireAcks set to 0 ?

@JohnnyZHH
Copy link
Author

Hi,

Thanks for your reply!
We tried requireAcks with 0 or 1, the performance dose not improve anymore.

@JohnnyZHH
Copy link
Author

Is there a benchmark for KAFKA-node high-level-producer?

@hyperlink
Copy link
Collaborator

@crzidea was working on some performance improvements in protocol code that could improve performance in this area. Some of this work is already merged into master.

I have benchmark code in a local branch for the consumer but nothing for the producer. I would be glad to review If you wanted to take a stab at creating one.

@JohnnyZHH
Copy link
Author

JohnnyZHH commented Apr 18, 2017

Hi,

Could you please provide the benchmark about consumer for reference? Thanks!

@crzidea
Copy link
Member

crzidea commented Apr 18, 2017

@JohnnyZHH I have some production performance results here #654 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants