tencent cloud

TDMQ for CKafka

Step 3. Creating Topic

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-20 16:43:55

Scenarios

Before using TDMQ for CKafka (CKafka) for message sending and receiving, you need to create a topic resource in your existing CKafka instance. Producers send messages to a specified topic, while consumers consume them by subscribing to the topic. This document describes how to create a topic in the CKafka console.

Prerequisites

Operation Steps

1. Log in to the CKafka console.
2. In the left sidebar, select Instance List, locate the pre-created instance, and click the instance ID to go to the instance details page.
3. On the instance details page, select the Topic List tab at the top of the page, and click Create.
4. In the topic editing window, specify the information, such as the number of partitions and the number of replicas.
Parameter
Description
Name
A topic name cannot be changed after being set. It can only contain letters, digits, underscores, hyphens (-), and periods (.), and cannot start with double underscores.
Number of Partitions
A topic can contain one or more partitions, which serve as the basic units of assignment in CKafka. The default deployment architecture requires at least 3 nodes. It is recommended to start with 3 partitions to ensure a more even distribution of data. In this example, you can keep the default value.
Number of Replicas
The number of replicas for a partition ensures its high availability. To ensure data reliability, 2 replicas are enabled by default. In this example, you can keep the default value.
Tag
Tags are used to categorize and manage resources from different dimensions. This field can be left blank.
retention.ms
The message retention period at the topic level ranges from 1 minute to 90 days. In this example, you can keep the default value.
Advanced Configuration
Advanced parameter configuration for the topic. You can skip this section.
5. Click Submit to complete the topic creation.


Ajuda e Suporte

Esta página foi útil?

comentários