All Products
Search
Document Center

ApsaraMQ for MQTT:Overview

Last Updated:Sep 25, 2023

ApsaraMQ for MQTT allows you to use SDKs for different programming languages to connect to the Message Queue for MQTT broker to send and receive messages. This topic describes how to use Message Queue for MQTT SDK for Java to send and receive messages in different scenarios.

Procedure

The following figure shows the process of using Message Queue for MQTT SDK for Java to send and receive messages.

流程图
The process includes the following steps:
  1. Activate ApsaraMQ forMQTT and authorize a RAM user to access ApsaraMQ forMQTT resources

    Activate Message Queue for MQTT and authorize a RAM user to use ApsaraMQ for MQTT resources.

  2. Create resources

    Create instances, topics, and group IDs in the ApsaraMQ for MQTT console.

  3. Use Message Queue for MQTT SDK for Java to send and receive messages.