Most of the developers already familiar with HTTP web services. HTTP is a synchronous protocol so the client waits for the server to respond which comes at the cost of poor scalability. And synchronous communication is problematic when it comes to high load systems. Moreover, HTTP is one-way that clients cannot passively receive commands from the network.
For these causes, most high-performance scalable systems utilize an asynchronous messaging bus, rather than web services for internal data interchange. We have already discussed a similar thing before, the Advanced Message Queuing Protocol (AMQP). AMQP is for reliability and interoperability in the enterprise world. But it is not suitable for resource-constrained IoT applications. For this, we can utilize MQTT (Message Queuing Telemetry Transport) which is lightweight and flexible. This protocol is built for the publish and subscribe model.
So, if you are working on heavy IoT projects, and need to communicate between sensors with other systems, MQTT is the only well-suited solution for you.
How we can utilize MQTT?
With the TMS MQTT library, this is easy. TMS MQTT is a cross-platform messaging client library implementing the full MQTT specification. It supports Delphi and C++ Builder and you can deploy your solutions to Windows, Android, iOS, macOS, and Linux
What features does TMS MQTT have?
- MQTT client component
- Can be used in VCL, FMX, and LCL
- Supports Windows, iOS, Android, macOS, Linux, and Raspberry Pi
- Secure and non-secure connections
- and more
How I can download & install it to my RAD Studio?
You can easily install the library from the GetIt Package Manager in the IDE.