New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fiber implementation for Kafka producer client #41
Conversation
…bproject dependency
Hi, and thank you very much! |
Yeah. The Kafka Producer is already asynchronous with an io thread flushing the messages in the background. The future is completed whenever the send completes with a configurable number of acks. It seemed to me, based on other examples, that making it compatible with Quasar only required integrated with the SettableFuture. |
Yep. Looks good. |
Yeah. I'll rework the tests a bit later to test that. |
In the most recent commit, I modified the tests so that the futures were being joined inside a fiber. |
Very good. Thank you very much! |
Add fiber implementation for Kafka producer client
I was playing around with Comsat and Quasar this weekend to checkout the current state of development.
I wanted to to try an implementation, and created (what I think) is a working implementation of the Kafka producer. I started on a consumer implementation, but the current release Kafka "newer" consumer is unstable and the interface will change noticeably in the next release. So I thought I would hold off on that.
I thought I would submit this pull request in case this functionality of interest.