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

Heartbeat service in v2 #224

Open
Zerpet opened this issue Aug 21, 2023 · 0 comments
Open

Heartbeat service in v2 #224

Zerpet opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
v2.x Applicable to v2.x issues
Milestone

Comments

@Zerpet
Copy link
Contributor

Zerpet commented Aug 21, 2023

Summary

Implement a mechanism to receive and send heartbeats. Heartbeats should be sent when there are inactivity periods, for example, when the client is inactive (no locator operations) for some time. It should reset the timer when there's a locator operation.

More context

We want to implement a component that encapsulates the heartbeat behaviour. This component should:

  • waits on a time.Ticker to send heartbeats to the server
  • responds to heartbeats from the rabbitmq server
  • resets the ticker when there is a locator operation, a producer operation or a consumer operation

We want to reuse this component in multiple places in the codebase. We should implement its own struct to handle all this logic.

@Zerpet Zerpet added the v2.x Applicable to v2.x issues label Aug 21, 2023
@Zerpet Zerpet added this to the 2.0 milestone Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Applicable to v2.x issues
Projects
None yet
Development

No branches or pull requests

2 participants