3 ms·
> Do people combine REST & MQTT? I'm not a REST+MQTT expert, but some people do combine them, why not? One of the project I was working on (IoT, smart home),
by serial_dev 5y ago
> Do people combine REST & MQTT?
I'm not a REST+MQTT expert, but some people do combine them, why not?
One of the project I was working on (IoT, smart home), the mobile app received the current status from the REST API, then subscribed to changes via MQTT. Having MQTT was great for live updates on the mobile app, and for communicating with the IoT devices. HTTP was great for integrations with Google Home, Alexa, and we could test it easily as there are many backend frameworks focusing on CRUD REST HTTP backend apps.
Of course, if you actually have a problem you want to solve, be sure the to do your own research, there are more than one way to skin a cat, and there are so many services and platforms that could be "good enough" for your use case.
- PostThisTooFast 5y agoThanks! This is similar to the scenario I'm talking about. I'm mostly presenting a remote control to the user and sending commands to the device. But I also need to get status from the device, and polling for the state of every setting is a crappy way to go.