graysonzeng commented on PR #1059: URL: https://github.com/apache/pulsar-client-go/pull/1059#issuecomment-1645223710
https://github.com/apache/kafka/blob/4ea9394e7ebf71e2dcf96e9b96191dac253f4930/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L1294C15-L1294C22 In kafka. When the user actively closes, the waiting time can be specified until all messages in the queue are cleared. I think it is a good choice to use flush to send the data in the remaining queue before closing。 If you think it's better to let the message fail directly. i can change it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
