tencent cloud

Step 3. Create a Topic
Last updated: 2025-08-13 14:55:58
Step 3. Create a Topic
Last updated: 2025-08-13 14:55:58

Overview

Before using CKafka for message sending and receiving, you need to create a Topic in the created CKafka instance. The producer sends messages to the specified Topic, and the consumer obtains messages by subscribing to the Topic for consumption. This article introduces the steps to create a Topic in the CKafka console.

Prerequisites

Creating an Instance has been finished.

Directions

1. Log in to the CKafka console.
2. Select Instance List in the left sidebar, find the created instance, click the instance "ID", and go to the instance details page.
3. On the instance details page, click Topic Management at the top of the page, and click Create.
4. In the Create Topic dialog box, set parameters as needed replicas.
Parameter
Description
Name
Topic name cannot be changed after input. Name can only contain letters, digits, underscore, "-", and ".". Names starting with double underscore are not supported.
Number of Partitions
A Topic can contain one or more partitions. CKafka uses partition as the allocation unit. The default deployment architecture has at least 3 nodes. It is advisable to start with 3 partitions for more balanced data distribution. You can keep default values here.
Number of Replicas
The number of replicas for a Partition is used to ensure high availability of the Partition. To ensure data reliability, 2 replicas are enabled by default. You can keep default values here.
Tag
Tags are used to manage resources by category from different dimensions. Leave blank here.
retention.ms
Message retention time in the Topic dimension, ranging from 1 minute to 90 days. Keep default values here.
Advanced Configuration
Advanced Topic parameter configuration. Skip here.
5. Click Submit.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback