tencent cloud

TDMQ for MQTT

DocumentationTDMQ for MQTTGetting StartedPublic Network AccessStep 1: Creating a Cluster and Configuring the Public Network

Step 1: Creating a Cluster and Configuring the Public Network

PDF
Focus Mode
Font Size
Last updated: 2026-04-01 16:24:56

Scenarios

Before using the SDK to send and receive messages, you need to create clusters and configure the network in the TDMQ for MQTT console, and configure information about related resources when running the client.

Prerequisites

You have completed the preparations.

Creating a Cluster

1. Log in to the TDMQ for MQTT console.
2. In the left sidebar, choose Resource > Cluster, select a region, and click Create Cluster to go to the cluster purchase page.
Configuration
Description
Billing Mode
Supports Yearly/monthly subscription and Pay as you go modes.
Yearly/monthly subscription: requires payment before resource usage. This billing mode is suitable for scenarios with steady and long-term usage requirements.
Pay-as-you-go: Pay for resources after usage. This billing mode is suitable for testing or scenarios with unpredictable traffic peaks.
Region
Select a region near your client to minimize network latency and improve access speed. Cloud products in different regions cannot communicate over the private network, and the region cannot be changed after purchase, so proceed with caution.
Cluster Specification
Select Pro Edition. The Basic Edition is sold out. Differences between versions can be checked in the Product Series.
TPS Specification
Select an appropriate TPS specification based on business traffic requirements. Subsequent configuration changes can be made quickly in the console. The TPS specification includes the sum of production messages and consumption messages. Each message is counted based on configurations. For details, see Billing Overview.
Number of Client Connections
In the Pro Edition, the number of free connections varies by TPS specification. Additional connections can be purchased separately as needed.
VPC
Authorize binding the access point domain name of the newly purchased cluster to the Virtual Private Cloud (VPC).
Public Network Access
Enabling public network bandwidth will incur additional fees. You can disable it on the cluster basic information page after activation. For pricing details, refer to Billing Overview.
Cluster Name
Enter a cluster name that complies with the naming rules: It must be 3 to 64 characters in length and can only contain digits, letters, hyphens (-), and underscores (_).
Tag
Tags are used to categorize and manage resources from different dimensions.
3. After confirming that the cluster information is correct, click Buy Now. After completing the payment on the order payment page, wait for 3 to 5 minutes for the new cluster to appear in the cluster list on the Cluster Management page.

Enabling Public Network Access and Obtaining Access Point Addresses

1. Click the ID of the created cluster to enter the Basic Information page.
2. In the Access Information module, click the Edit button for public network access, and then enable the public network in the pop-up window.
3. In the pop-up window for adjusting network bandwidth, set the public bandwidth size and configure a secure access policy for the public network to allow access from designated IP addresses. If no policy is set, all IP access is denied by default.

4. Click Submit and complete the payment, then return to the console. The public network will show as Enabling. Wait for the public network to be enabled.
5. After enabling, in the Client Access module, you can see that the Public Network Access Address section already shows information such as the public network bandwidth and IP addresses.

6. You can verify network connectivity using the following command:
curl -v http://mqtt-xxxx-sh-public.mqtt.tencenttdmq.com/status/check
Here, mqtt-xxxx-sh-public.mqtt.tencenttdmq.com is the access point to be verified.
If the network is connected, the output is similar to the following:



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback