Skip to content

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

Open
@BondByteBlaster

Description

@BondByteBlaster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions