-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add producing batched messages #112
Comments
Good idea! It should probably take an array of
Sounds good? |
Sounds good. |
Internally librdkafka already batches messages sent to the broker, and that is what The new produce_batch() API is not related to |
Get it. Thanks a lot. |
This is a high performance interface for enqueuing multiple messages in one go.
There you go, Please verify this on your end. |
Hey @Gvain, have you had time to test the new batch call yet? |
@edenhill I am so sorry for the late reply ! The notification email was wrongly ignored by a newly start up filter. The new batch call seems good. Thank you. |
Do you have any performance numbers on use of rd_kafka_produce_batch vs rd_kafka_produce? Does it give significant increment in the throughput? |
@kparadkar Expirements have shown that there isn't typically much to gain from using the produce_batch() API. But, as is always the case with performance measurements, you will need to do your own using your own environment and usage. |
How does rd_kafka_produce_batch() handle NULL topic handle. Will it error out with something like EINVAL? |
@archanapujar NULL topic handle is not supported and the produce_batch() call will crash. |
@edenhill Thanks for the quick response! Does this behavior hold good for all the supported apis? |
Generally yes |
To improve throughput, i think we should add producing batched messages as rd_kafka_consume_batch() do.
And also producing batched messages is supported by JAVA API.
The text was updated successfully, but these errors were encountered: