This topic describes the architecture, use cases, and benefits of Message Queue for MQTT. While traditional message queue (MQ) services are used between microservices, Message Queue for MQTT that is designed for the IoT implements message transmission between clients and the cloud to make the Internet of Everything a reality.

For information about how to use Message Queue for MQTT, see Quick start guide.

Network access

In addition to internet access, Message Queue for MQTT supports private networks for application infrastructure, namely Virtual Private Cloud (VPC) access. You have full control over your VPC, which you can define and customize by specifying the IP address range and configuring route tables and network gateways. You can also launch Alibaba Cloud resources such as Elastic Compute Service (ECS), Relational Database Service (RDS), and Server Load Balancer (SLB) in your own VPC.


Message Queue for MQTT is a lightweight, message-oriented middleware (MOM) launched by Alibaba Cloud for mobile Internet and IoT scenarios. Based on the features of message transmission in mobile Internet and IoT scenarios, it supports MQTT, STOMP, and other mainstream communication protocols. In addition, Message Queue for MQTT supports native TCP persistent connections, SSL encryption, WebSocket, and other transmission modes at the data link layer and supports mainstream development languages and platforms including C/C++, Java, iOS, and Android. Figure 1 shows the system technology stack of Message Queue for MQTT.

Figure 1. Architecture


With the support for multiple protocols, languages, and platforms, Message Queue for MQTT is widely used in mobile Internet and IoT scenarios, including mobile live broadcasting, Internet of Vehicles, financial payments, smart catering, and instant chatting.

Figure 2 shows the main use cases of Message Queue for MQTT.

Figure 2. Scenarios


Message Queue for MQTT mainly provides mobile connection access, connection management, and data forwarding services. MQ for MQTT can be used with other Alibaba Cloud MQ services that support backend data persistence and message storage, such as traditional MOM (MQ for MQ and Kafka). Also, it can serve as a connection gateway with unlimited scalability.Message Queue for MQTT is designed with a distributed architecture. With no single point of failure (SPOF) and infinite scalability between components, its architecture ensures that its capacity is completely transparent to you and can be adjusted according to your online usage.

Figure 3 shows the benefits of Message Queue for MQTT.

Figure 3. Benefits

Message Queue for MQTT has the following advantages over other mobile message services:

  • It supports standard protocols, such as MQTT and STOMP. This means you are not bound to any technologies and can migrate the MQ service seamlessly to the cloud by using most open source SDKs.
  • As a persistent connection gateway that responds to massive mobile clients, its backend can communicate with other Alibaba Cloud MQ services. You can implement bidirectional communication between the client and the cloud without building individual gateways.
  • It supports device-level permission control and SSL/TLS-encrypted communication, making data transmission more secure and reliable.