Replies: 1 comment
-
Usually for a Kafka producer, you try to batch your writes :
In
Then after that, there is a lot of factor that could go on, especially with option like the linger time, the compression used, the actual throughput on this consumer, ... |
Beta Was this translation helpful? Give feedback.
-
What is the real difference between two? Wait does "and wait for the result" mean for send_and_wait() exactly?
In one part of my application, using send_and_wait() is very fast, but in in another part of the app, it is verrry slow. Both producers are setup the same way (although they are separate producers). Not sure why that would be the case. I tried using send() just now in place of send_and_wait and had no issues, blazing fast.
Is using send() riskier in anyway? Will the producer still retry if there is an error sending the message, or would I have to handle that manually?
For more context, on the producer side I don't need to wait for any reason for the message to be consumed / processed. I just need to make sure it is sent to the topic.
Beta Was this translation helpful? Give feedback.
All reactions