-
Notifications
You must be signed in to change notification settings - Fork 41
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
Ack seems not to be working #13
Comments
@typusomega , Thank you for raising this issue, we appreciate you using NATS! Publish acknowledgements are completely decoupled from subscriber acknowledgements. The server sends an acknowledgment to the publisher when the server has persisted the message, independent of what the subscriber may be doing. Subscribers, on the other hand, send acknowledgements to the streaming server to let the server know it received the message, allowing the server to maintain its state of the subscriber for redeliveries, durable subscriptions, etc. It sounds like the subscribe side is working as expected for you. What exception are you seeing with the publisher? Thanks, |
Hi, thanks for your fast response. I already assumed that publisher acks and subscriber acks are decoupled. But I think 'Unacked messages on the fly' is the time between publisher and subscriber (not publisher and server) This is my publisher exception:
Regards |
@typusomega, Happy to help! It looks like you are publishing very quickly - the option The exception you are seeing is caused by the server taking too long to return a publish ack. Could you increase the |
Hi, thanks for your explanation. This is what I'm doing:
Since Publish() is a synchronous call I assumed it would block until the server's ack was received. I already changed the timeout and it's working that way, so I'm closing this. Best regards |
Great! Glad it is working out for you. Again, thanks for raising the issue! |
Hi,
I've faced a weird issue concerning the subscriber's ack mechanisms.
It looks like if they would neither work with auto nor with manual acking.
The publisher retrieves an exception after publishing 16384 messages, which is the defualt AckWait-Value.
The weird thing is, that my subscriber obviously receives and (manually) acks messages.
Regards
The text was updated successfully, but these errors were encountered: