Skip to content

Reconnect #497

Answered by bretambrose
abarke asked this question in Q&A
Apr 25, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The 311 client took that approach and, over time, we came to consider that a significant mistake. Using such an approach can be an unpleasant surprise, is more complicated, and forces everyone to wrap their connection attempt with retry logic.

MQTT the protocol is oriented towards networking situations with unpredictable/unreliable connectivity. Any correct application has to retry since otherwise the application just fails if connectivity is down at launch.

The metaphor for the 5 client is a light switch or circuit. If the switch is off (client stopped) nothing happens. If the switch is on (client started) then, if there's power (a route to the broker) you will have light (can perform MQ…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abarke
Comment options

Answer selected by abarke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants