-
Notifications
You must be signed in to change notification settings - Fork 7
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
Slow Consumer Detection #30
Comments
Hi !
I don't think nitox provides a way to handle it for now.
I might be wrong here, but I think it's a clients responsibility to subscribe or unsubscribe, so I'm not really sure it would be the lib's responsibility to provide you with it. I suppose you would like to have it race with a tokio timeout ? |
Hi and thanks for the response @o0Ignition0o My initial observations were a bit incomplete, as I've subsequently noticed that:
In my case, I stream the subscription, and can't think of a simple enough way to detect that the connection is closed, and thus terminate the loop. The ideal solution (in my case) is for the stream to terminate with an error. I'll have a look at the book, maybe it's simply a case of listening to the notification, and terminating the stream with a |
Is there a way to configure what happens when the server sends a 'slow consumer' notification?
I've noticed that the subscription to a topic will remain active, even if there's no longer data coming. It would be ideal to throw an error so the loop gets broken,
The text was updated successfully, but these errors were encountered: