aws / aws/aws-iot-device-sdk-java-v2

Auto-resubscribing topics on reconnect

Open
#617 2 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
Java
Stars
138
Forks
80
PR merge metrics
No merged PRs in 30d

Description

### Describe the feature

Support for automatic topic resubscription in the event MQTT connection is lost and subsequently reconnected. Note that this would be separate to session resumption, and would be used in the event that a client session is lost by the MQTT broker

### Use Case

Right now we have an "MQTT service" singleton component in our application stack that wraps the AWS v2 IoT SDK, and in particular topic subscription functionality. Even though we have sessions enabled with a large timeout - we occasionally see instances where the session cannot be resumed on reconnection, resulting in our application no longer able to process messages. Even though we could handle this at our service layer, I was thinking this is probably a common enough use case that warrants consideration of being implemented within the SDK itself

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### SDK version used

1.23.0

### Environment details (OS name and version, etc.)

Android 10 OS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.