how to limit rate in Producer ? #4191
Unanswered
le-cardinal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
is there an easy way to limit rate of produced messages per second on my producer app ?
i saw some code in rdkafka_performance to simulate somekind of timeout by looping with a rd_kafka_poll() but i'm not convinced by that. In addition, it is using some macros from some others files, so it's very hard to implement the same thing on a real producer that does not include all rd*.h files. My idea is to have some code to slow down/speed up the emission rate on my producer app to see up to which rate there is no errors (all messages acknowledged, no errors encoutered).
Any help/idea will be highly appreciated.
regards
Beta Was this translation helpful? Give feedback.
All reactions