-
Notifications
You must be signed in to change notification settings - Fork 204
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
Producer will persistently consume the memory via produce_no_ack #485
Comments
Hi @belltoy The API is designed to be async without back pressure. maybe a configurable behavior:
|
A quick fix for you is maybe to make the caller alternatively use |
Yes, I saw that's what this API was designed for. But need some method to handle this.
This idea maybe fit my scenario. But where to drop these requests? The ack/no_ack term of this API is different from the acks term of Kafka, which is confusing. Or rather to say, like People don't care about acks/response/others in this scenario, use EDIT: Produce request with |
This is an enhancement to be added. |
When producing via
produce_no_ack
(fire & forget), and if the Kafka broker response is slower than producing, the producer will persistently consume the memory till OOM.https://github.com/kafka4beam/brod/blob/master/src/brod_producer_buffer.erl#L118
It's better to add a threshold to limit that. Or drop messages when exceeding.
The text was updated successfully, but these errors were encountered: