GitHub user haze518 added a comment to the discussion: Support sending messages 
in the background

Hey! What do you think about an approach similar to the kafka sarama library 
https://github.com/IBM/sarama? There, this issue is solved not through method 
parameters or a separate method, but by having distinct producers: SyncProducer 
for synchronous sending and AsyncProducer, which works via a channel.

It seems like this approach is more convenient because it's immediately clear 
how you're sending messages, and there’s no confusion with parameters. Plus, 
error handling is also more straightforward: with the synchronous producer, 
errors are returned immediately, while with the asynchronous one, they come 
through a separate channel

GitHub link: 
https://github.com/apache/iggy/discussions/1593#discussioncomment-12389851

----
This is an automatically sent email for dev@iggy.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@iggy.apache.org

Reply via email to