Skip to content
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

[QUESTION] How to detect connection issues with a consumer? #1073

Open
anetbnd opened this issue Nov 14, 2024 · 0 comments
Open

[QUESTION] How to detect connection issues with a consumer? #1073

anetbnd opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@anetbnd
Copy link

anetbnd commented Nov 14, 2024

Hello,

we face issues to detect the connection status to the broker with a consumer. We have the requirement to generate a notification, if the connection to the broker is lost. But with aiokafka we cannot come up with any good concept to do that.

If we run getmany(...) the method will just return after the timeout is reached with an empty dictionary. But we don't know if the dictionary was empty because of no messages received or because of the connection get lost. Is there any way to test the connection status?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant