You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
disclaimer : I'm pretty new to both go and kafka
While playing around with kafka-go, I noticed that the WriteMessages() is blocking until it finished delivering messages. Is the expected usage to manage a set of goroutines to ensure fast throughtput, or is there a method I missed in the API to do that ?
Thanks in advance,
The text was updated successfully, but these errors were encountered:
Keep in mind that in this mode there is no way to know whether the write was successful, if the kafka servers are unreachable or the program exits before the async send happened the messages would get lost.
Your idea of using multiple producer goroutines with blocking WriteMessages calls would also work, and you'd receive an error if producing the messages fail.
Hello,
disclaimer : I'm pretty new to both go and kafka
While playing around with kafka-go, I noticed that the
WriteMessages()
is blocking until it finished delivering messages. Is the expected usage to manage a set of goroutines to ensure fast throughtput, or is there a method I missed in the API to do that ?Thanks in advance,
The text was updated successfully, but these errors were encountered: