-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: some consumer commands do not return success responses #320
Comments
@visionmedia - I understand your perspective, it is admittedly a bit inconsistent. Here's my answer to a recent ML post to provide some context (originally on https://groups.google.com/d/msg/nsq-users/VSxdPtw2ZmY/kmQJJhZe4wEJ but copied here):
To summarize, for a client library's producer (where callbacks to commands are actually useful) every command does have a matching response. For consumers there is really only one command (that a user of a client library would ever use) where you would actually want a callback, |
Hmm yeah tough call, I can see how most would pretty much never occur in practice (failing on FIN/REQ etc). Oh well not a huge deal I should have read the docs better in the first place haha, I was wondering why we were having strange latency issues ;D |
updated title for (hopefully) better searchability |
There could be reasonable ways around this, but with the few commands that sometimes respond (on error) it makes writing clients that support command callbacks a little tricky. Ideally it's just a FIFO of callbacks, but we have to handle the case of RDY not receiving a response, but maybe receiving an error and so on.
Maybe always responding with OK would be more elegant? For now I'll probably just .emit() those.
The text was updated successfully, but these errors were encountered: