-
Notifications
You must be signed in to change notification settings - Fork 2
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
Azure with MQTT1 failover #4
Comments
failover between azure and plain MQTT is not currently supported. |
And failover between two azure servers?
what if azure module configured the mqtt module using |
it's possible, and fairly easy to do, actually. i'm just not sure how useful it is. are you already using it or is it just a hypothetical at this point? |
Well. I am going to deploy lots of mongoose OS devices connecting to I need devices to connect to alternate MQTT server on my own domain should that ever happen to maintain the communication. I've tried to use my domain to point to azure iot hub using CNAME (so i can eventualy change the CNAME to point to my own MQTT server instead of azure), but that obviously causes certificate issues. And azure iot hub (unlike other azure services) can't be provided with custom certificate to run MQTT securely on custom domain (without using reverse proxy somewhere else). |
sounds reasonable. as i said, it's not difficult to do, but no promises as to ETA. |
sure, hopefully azure iot hub will stay operational and unchanged for some time... but in a long run this might save my 4ss :-D BTW this gets me thinking about how modules like this should play along... There are quite few questions considering the design choices. Eg.: Would it make sense to have multiple parallel MQTT connections (each possibly with own failover alternative servers)? |
so, the recent refactoring was a step to having multiple simultaneous MQTT connections. azure does not exclusively use the for azure -> mqtt failover, it's up to the alternative server to provide service required by azure. most likely not full service, but just enough to recover the primary connection (i.e. probably rpc). |
Nice. This might be usefull.
Yes. RPC's probably all i need to reconfigure azure/mqtt and possibly do OTA in case something changes. |
Hello, i've tried to setup azure mqtt with failover to secondary server (mqtt1) and it never switches from mqtt0.
I have working azure setup and i've as well added mqtt failover server like this:
Then i've deliberately configured azure module to use wrong server hostname, which leads to MQTT0 tcp connect error (-14) every time. But MQTT1 is never even tried.
Use case is to failover to secondary azure server or self-hosted solution (like mosquitto) in case primary azure connection fails for some reason.
The text was updated successfully, but these errors were encountered: