Skip to content

Conversation

Y98S
Copy link

@Y98S Y98S commented Jul 28, 2025

  • Add is_heartbeat_healthy() method to Client for checking heartbeat status
  • Expose heartbeat health check in PushConsumer, Producer, and SimpleConsumer via public method
  • Heartbeat status is updated every 30s in client background task
  • Initialize heartbeat status as unhealthy on client creation
  • Add related unit tests to cover heartbeat health logic

Which Issue(s) This PR Fixes

[ISSUE #1049] [Rust] Add heartbeat health check API to Client

Brief Description

Add a heartbeat health check API to the RocketMQ Rust client.
Expose is_heartbeat_healthy(), Producer, and SimpleConsumer to allow applications to check if the client maintains a healthy heartbeat with the broker. Heartbeat status is updated periodically by the client background task.

How Did You Test This Change?

Added and updated unit tests to verify the heartbeat health check logic in Client.
Manually validated that the health status reflects heartbeat success and failure scenarios.

- Add is_heartbeat_healthy() method to Client for checking heartbeat status
- Expose heartbeat health check in PushConsumer, Producer, and SimpleConsumer via public method
- Heartbeat status is updated every 30s in client background task
- Initialize heartbeat status as unhealthy on client creation
- Add related unit tests to cover heartbeat health logic
@lizhimins lizhimins changed the title Rust: add heartbeat health check for Client and wrappers [ISSUE #1049] [Rust] Add heartbeat health check API to Client Aug 11, 2025
@Y98S Y98S closed this Aug 20, 2025
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

Successfully merging this pull request may close these issues.

1 participant