Skip to Main Content

Manage Topics

This article introduces the basic concepts of Topics, related constraints, and operations for creating, viewing, modifying, and deleting Topics.

Creating a Topic

Steps to Operate

  1. Log in to the environment console, click on Instance List in the left navigation bar. Then, in the instance list, click the target instance name to enter the internal functions of the instance.

  2. Click on Topic in the left navigation bar, then click New Topic on the Topic list page.

  3. On the New Topic form page, fill in the name, number of partitions, and message cleanup policy, then click OK to complete the creation.

If the instance has automatic Topic creation enabled, Topic creation will be automatically triggered when producing or subscribing to messages. It is recommended to use the console or the Kafka Admin API for Topic management in a production environment to avoid the risk of uncontrolled automatic creation.

Viewing Topic Details

Operation Steps

  1. Log in to the environment console, and in the left navigation bar, click Instance List. Then, in the instance list, click the target instance name to access the instance's internal functions.

  2. In the left navigation bar, click Topics, then find the target Topic on the Topic list page.

  3. Click the target Topic to enter its details and view overview information, subscription information, and related metrics data.

Message Query

AutoMQ Kafka supports querying messages directly from the console. The query conditions and parameters are as follows:

  • By Relative Time: When multiple partitions are selected, it supports querying messages by relative time.

  • By Relative Offset: When a single partition is selected, you can specify the offset to query messages.

Operation Steps

  1. Log in to the environment console and click on Instance List in the left navigation bar. In the instance list, click on the target instance name to access the instance's internal features.

  2. In the left navigation bar, click on Topics, and then find the target Topic in the Topic list page.

  3. Click on the target Topic to enter the Topic details, then click on Message Query and input the relevant filter conditions to query the message list.

Delete Topic

After deleting the Topic, all messages and configurations within the Topic will be cleared and cannot be recovered. Therefore, it is crucial to confirm that the business no longer requires it.

If the instance has automatic Topic creation enabled, the Topic will be re-created automatically when producing or subscribing to messages. For production environments, it is recommended to use the console or Kafka Admin API for Topic management to avoid the risk of uncontrolled automatic creation.

Operation Steps

  1. Log in to the environment console and click Instance List in the left navigation bar. Then, in the instance list, click the target instance name to access the instance's internal functions.

  2. Click Topics in the left navigation bar, then find the target Topic on the Topic list page.

  3. Click the action button on the right, select delete, and confirm the deletion to complete.