Repository navigation
|
Are these two just the same thing but |
Answered by
dasch
Dec 30, 2020
Replies: 1 comment
|
The async producer in fact wraps a sync producer, so when producing async a message will first be placed in the queue (which is thread safe), then be picked up by a background thread and placed in the sync producer's buffer, and then flushed to Kafka at some point. |
0 replies
Answer selected by
dasch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The async producer in fact wraps a sync producer, so when producing async a message will first be placed in the queue (which is thread safe), then be picked up by a background thread and placed in the sync producer's buffer, and then flushed to Kafka at some point.