- Analytics for the Internet of Things(IoT)
- Andrew Minteer
- 239字
- 2021-07-02 18:59:34
Disadvantages to MQTT
- It operates over TCP: TCP was designed for devices that had more memory and processing power than many of the lightweight, power constrained IoT devices have available to them. TCP requires more handshaking to set up communication links before any messages can be exchanged. This increases wake-up and communication times, which affects the long-term battery consumption. TCP connected devices tend to keep sockets open for each other with a persistent session. This adds to power and memory requirements.
- Centralized broker can limit scale: The broker can affect scalability as there is additional overhead for each device connected to it. The network can only grow as large as the local broker hub can support it. This puts a limit on expansion for each hub and spoke group.
- Broker single point of failure: It can also be a single point of failure in the network. A common situation is a broker device that is plugged into a wall socket with several publishing devices that are battery powered. In the event of a power failure, the publishing devices would keep operating but the broker would be offline. The network would be useless until the power is resumed.
- Security: MQTT is unencrypted by default. This makes it natively unsecured and requires you to take additional steps and absorb some overhead to make sure TLS/SSL is implemented. If not, any communication over MQTT, including username and password, is open to hackers.
推薦閱讀
- Learning LibGDX Game Development(Second Edition)
- Spring 5.0 Microservices(Second Edition)
- C++案例趣學(xué)
- AWS Serverless架構(gòu):使用AWS從傳統(tǒng)部署方式向Serverless架構(gòu)遷移
- 實(shí)戰(zhàn)Java程序設(shè)計(jì)
- MySQL入門很輕松(微課超值版)
- 現(xiàn)代C++編程實(shí)戰(zhàn):132個(gè)核心技巧示例(原書第2版)
- Scratch趣味編程:陪孩子像搭積木一樣學(xué)編程
- Java EE項(xiàng)目應(yīng)用開發(fā)
- Visual Basic語言程序設(shè)計(jì)上機(jī)指導(dǎo)與練習(xí)(第3版)
- 樹莓派開發(fā)從零開始學(xué):超好玩的智能小硬件制作書
- Learning Apache Thrift
- Python程序設(shè)計(jì):基礎(chǔ)與實(shí)踐
- 邊做邊學(xué)深度強(qiáng)化學(xué)習(xí):PyTorch程序設(shè)計(jì)實(shí)踐
- Xamarin Mobile Application Development for Android(Second Edition)