Production environments using MQTT connections are experiencing message loss when publisher systems (like External Databus) undergo power cycles or unexpected disconnections. Current manual recovery process impacts production efficiency and system reliability.
Current Behavior:
- MQTT connections drop during publisher power cycles
- No automatic recovery mechanism
- Requires manual unsubscribe/re-subscribe intervention
- Message flow interruption until manual fix
Requested Enhancement:
1. Automatic Connection Recovery:
- Auto-detect connection drops
- Implement reconnection logic
- Handle subscription renewal
- Message queue management during downtime
2. Monitoring Capabilities:
- Connection state tracking
- Failed attempt logging
- Recovery action reporting
3. Configuration Options:
- Retry intervals
- Custom recovery strategies
- Timeout settings
Technical Requirements:
- Event listener for connection state changes
- Robust error handling
- Configurable retry mechanism
- Connection health monitoring
- Message persistence during outages
Expected Outcome:A resilient MQTT connector that:
Use Cases: