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

Do we need a manual heartbeat and keep-alive? #1119

Open
BondByteBlaster opened this issue Mar 10, 2025 · 0 comments
Open

Do we need a manual heartbeat and keep-alive? #1119

BondByteBlaster opened this issue Mar 10, 2025 · 0 comments

Comments

@BondByteBlaster
Copy link

BondByteBlaster commented Mar 10, 2025

Hi,

I’ve implemented a manual heartbeat (PublisherSocket to SubscriberSocket) set to every 10 seconds, and a keep-alive (RequestSocket to ResponseSocket) every 30 seconds(2 retries).
The purpose is to detect connection loss (so we can reconnect) and to prevent the connection from being dropped due to inactivity.

I’m aware that NetMQ has built-in support for both heartbeat and keep-alive, but they are disabled by default, and it seems many developers tend to avoid using them.

So, is there actually a need for implementing manual heartbeat and keep-alive like I’ve done?

Regards

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

No branches or pull requests

1 participant