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
CommitMessages is a reader method, it is not involved in the write path.
The WriteMessages documentation states
Unless the writer was configured to write messages asynchronously, the method blocks until all messages have been written, or until the maximum number of attempts was reached.
Another way to phrase it is, unless you are configuring the writer to work asynchronously, messages are guaranteed to be written to Kafka if the method call returns no errors.
Let me know if you need anything else to be clarified.
Reference
https://godoc.org/github.com/segmentio/kafka-go#Writer.WriteMessages
https://github.com/segmentio/kafka-go#explicit-commits
Note that in this case there are no guarantees made on whether messages were written to kafka.
Q
how do guarantees messages were written to kafka?
&
explicit commits
r.CommitMessages(ctx, m)
can guarantees offsets commited?The text was updated successfully, but these errors were encountered: