Operation Scenarios
Before using the SDK to send and receive messages, you need to create resources such as clusters and Topic in the console of TDMQ for RocketMQ . Relevant resource information needs to be configured when running the client.
Prerequisites
Steps
Step 1. Create a new cluster
1. Log in to the RocketMQ console, enter the Cluster Management page, and select the target region. 2. Click Create Cluster, select the appropriate cluster specifications, and then click Buy Now to establish a new cluster.
3. From the cluster list page, click the created cluster ID. In Access Information section of the cluster information page, you can view the access point details of the cluster.
Step 2. Configure cluster permissions
1. Click the "ID" of the created cluster in Step 1 to access the basic information page of the cluster. 2. Select the Cluster Permissions tab at the top of the page, click Add Role to create a role, and configure production and consumption permissions for it.
Step 3. Create a Topic
1. From the cluster permissions list page, select the Topic tab to access the Topic list page.
2. Click Create, enter a Topic name, select General message as the type, then click Submit to create a Topic.
Note:
This document describes the process of using general messages as an example, therefore, the created Topic following these steps for general messages cannot be used to send or receive messages of other types.
Step 4. Create a Group
1. From the Topic list page, select the Group tab at the top to access the Group list page.
2. Click Create, enter a Group name, leave the other settings at their defaults, then click Submit to create a Group.
Was this page helpful?