All Products
Search
Document Center

ApsaraMQ for MQTT:What is ApsaraMQ for MQTT?

Last Updated:Jan 04, 2024

ApsaraMQ for MQTT is a lightweight message-oriented middleware provided by Alibaba Cloud for the mobile Internet and Internet of Things (IoT) fields. Traditional message-oriented middleware is used to transmit messages between microservices. ApsaraMQ for MQTT, which is developed for IoT, is used to transmit messages between devices and the cloud. This topic describes the messaging model, benefits, and scenarios of ApsaraMQ for MQTT.

Terms

  • topic: the topic of messages. It is the primary classifier of messages. Producers send messages to topics.

  • producer: the producer or publisher who produces and sends messages to a topic.

  • consumer: the consumer or subscriber who subscribes to and consumes messages from a topic.

  • message: the data that is sent by a producer to a topic and then delivered to a consumer.

  • rule: the resource that is used by ApsaraMQ for MQTT to exchange data with other Alibaba Cloud services.

Messaging models

ApsaraMQ for MQTT supports the following messaging models:

  • Interactions between devices and cloud services

    In this model, the ApsaraMQ for MQTT connects devices to the cloud for two-way communications. ApsaraMQ for MQTT allows devices to communicate with applications in the cloud. ApsaraMQ for MQTT also allows devices to exchange data with other Alibaba Cloud services.

    Typical scenarios of this model is to report the status data of smart devices to the cloud and to control the delivery of commands from backend service applications to smart devices.

    终端和云端交互

  • Interactions between devices

    This model is suitable for data communications between mobile applications or between devices. Typical scenarios of this model include chatting between users by using instant messaging technology and application-based control over smart devices. In this model, producers and consumers run on devices that are connected to ApsaraMQ for MQTT over the Message Queuing Telemetry Transport (MQTT) protocol.

    终端和终端交互

Based on the preceding models, developers who use ApsaraMQ for MQTT can be divided into device developers and cloud developers. For information about custom development that developers can perform, see Download the SDK and Obtain SDKs for the control API.

Benefits

  • Seamless migration

    ApsaraMQ for MQTT supports WebSocket, is compatible with SDKs that support MQTT V3.1.1, and can be used on most mobile development platforms in various programming languages.

  • High performance

    ApsaraMQ for MQTT sends messages within milliseconds, and supports tens of millions of connected devices, millions of concurrent messages, and trillions of transactions. The distributed architecture prevents single-point capacity bottlenecks and ensures unlimited scale-out for each component.

  • High security and reliability

    ApsaraMQ for MQTT supports device-level permission management, temporary tokens, and Transport Layer Security (TLS) V1.2 to ensure the security and reliability of data transmission.

  • Interconnection with other message queue services

    ApsaraMQ for MQTT supports message exchange with ApsaraMQ for RocketMQ. This helps implement efficient and reliable two-way communications between devices and the cloud.

Scenarios

ApsaraMQ for MQTT supports different programming languages over a range of protocols. ApsaraMQ for MQTT is available on multiple application platforms and is used in the mobile Internet and IoT fields. This service is suitable for various scenarios, such as mobile live-streaming, Internet of Vehicles (IoV), payment, smart catering, and instant messaging.

应用场景

Purchase ApsaraMQ for MQTT instances

You can go to the ApsaraMQ for MQTT buy page to purchase an ApsaraMQ for MQTT instance.