All Products
Search
Document Center

ApsaraMQ for MQTT:Manage groups

Last Updated:Mar 10, 2026

A group represents a collection of nodes (devices) that share the same business logic and features. Before your clients can send or receive messages, you must create a group and assign it a unique group ID.

Group ID naming rules

A group ID must meet the following requirements:

RequirementDetailExample
PrefixMust start with GID_ or GID-GID_sensors
Length7 to 64 charactersGID_temp_01 (11 characters)
CharactersLetters, digits, hyphens (-), and underscores (_) onlyGID_my-device_01

Group IDs must be unique within an instance but can be reused across different instances.

Examples:

Group IDValidReason
GID_sensors_01YesCorrect prefix, valid characters
GID-temperatureYesGID- prefix is also valid
sensors_01NoMissing required GID_ or GID- prefix
GID_aNoToo short (5 characters, minimum is 7)

Prerequisites

Before you begin, make sure that you have:

Create a group

  1. Log on to the ApsaraMQ for MQTT console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar, select the region where your instance resides. Click the instance name to go to the Instance Details page.

  3. In the left-side navigation pane, click Groups.

  4. In the upper-left corner of the Groups page, click Create Group.

  5. In the Create Group panel, enter a Group ID and click OK.

Delete a group

Warning

Deleting a group is permanent. After deletion, disconnected producer and consumer clients identified by the group ID fail authentication when they attempt to reconnect. Connected clients are not affected until they disconnect. Before deleting a group, verify that no active clients depend on it.

  1. Go to the Groups page.

  2. Find the target group. In the Actions column, choose More > Delete.

  3. In the dialog box, click OK.

View group details

  1. Go to the Groups page.

  2. Find the target instance in the instance list. In the Actions column, choose More > Groups.

  3. Find the target group and click its group ID to open the Group Details page.

What's next

After you create a topic and a group, start sending and receiving messages. For more information, see Use ApsaraMQ for MQTT SDK for Java to implement messaging between ApsaraMQ for MQTT clients and backend service applications.