-
Notifications
You must be signed in to change notification settings - Fork 46
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
Producer errors when using async facade #42
Comments
I face the same issue with the kinsky producer. Although, I have noticed that if the message size is too big I get a |
I see this as well. I was hoping based on the comment for #23 errors such as |
I am inclined to retire the |
I've been working on a fork with the improvement of having operation responses sent to the Warning: work in progress, I may force push on that branch, so use at your own risk. The async tests I wrote are passing and now I just need to update my using project to better validate what I've done. It's not battled tested though, however it makes this async facade more functional and usable, so feedback welcomed. If this async part of kinsky gets dropped I'll make it a separate lib instead of a PR. I still think it's worth having some async facade to kafka, in my case it helps me switch from kafka to simple channels in order to have a faster workflow and test suite. |
Hi @fmjrey , I think a library on top of kinsky which would revive the async facade would be nice, we're bound to continue supporting the base library but unlikely to use |
Hi @pyr, |
I'm not sure this is an issue. It could be something that is already possible but I'm not aware how to handle it. Basically, how does one receive errors (or success messages) when using the async facade for the producer? Looking at https://github.com/pyr/kinsky/blob/master/src/kinsky/async.clj#L309, it seems the result of the call to
send!
is lost in the future loop.Though I have never used it before, it seems that the async facade accepts a
response
channel. Would it be appropriate to use this to send the result, if it is supplied by the user? The primary error that I have run into on the producer side is limitations on message size and it is pretty important in my domain to know when this happens.I'm happy to put a PR together for this change, provided it is necessary. Just wanted to confirm that it is necessary and that there are currently no means to get the response from the call to
send!
.Thanks!
The text was updated successfully, but these errors were encountered: