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

Check retry and reconnect #3

Open
mpfeil opened this issue Mar 29, 2019 · 2 comments
Open

Check retry and reconnect #3

mpfeil opened this issue Mar 29, 2019 · 2 comments
Assignees
Labels

Comments

@mpfeil
Copy link
Member

mpfeil commented Mar 29, 2019

No description provided.

@mpfeil
Copy link
Member Author

mpfeil commented Sep 19, 2024

Our implementation of retrying failed connections and reconnect closed connections is slowing down the integration and closing existing connection without a chance to reconnect.

This PR disables the reconnect functionality of MQTT.js by setting recconectPeriod. So MQTT.js doesn´t try to reconnect existing clients.
Therefore bullmq and redis is introduced to handle retries. All closed connections or failed connections are added to a queue and creates a delyed job. It will be picked up by a worker to try to connect the box to the configured mqtt broker.

@mpfeil mpfeil self-assigned this Sep 19, 2024
@mpfeil mpfeil added the bug label Sep 19, 2024
@mpfeil
Copy link
Member Author

mpfeil commented Sep 19, 2024

This should also fix #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant