Parameter | Required | Description |
Region | Yes | It is automatically specified based on the region where the selected cluster is located. You do not need to specify it. |
Namespace | Yes | It is automatically specified based on the selected namespace. You do not need to specify it. |
Topic Name | Yes | It is a string of no more than 128 characters, containing digits, letters, and special characters "-_=:.". |
Topic Type | Yes | The options include Persistent and Non-persistent, and the default value is Persistent. Persistent: Messages in persistent topics are persisted to the disk with multiple replicas to ensure that the messages are not lost. Persistent topics apply to high-reliability scenarios, such as finance and transactions. Non-persistent: Messages in non-persistent topics are not persisted to the disk and are delivered to online subscribers directly, and they are deleted immediately after delivery. If no subscribers are online, the messages are deleted directly and not retained on the server. Non-persistent topics apply to scenarios with low data reliability requirements and stream processing. (Messages in non-persistent topics only support immediate sending/receiving of general messages and do not support features, such as message query, message tracing, delayed messages, message filtering, and message rollback). Note: For non-persistent topics, you should specify the complete topic name prefixed with non-persistent:// during message sending or receiving. |
Pa | No | It can be enabled and disabled, and it is enabled by default. When it is enabled, the default number of partitions is 2. When the partition switch is disabled, a topic is not divided into different partitions, and the number of partitions does not need to be configured. When the partition switch is enabled, a topic is divided into different partitions, and the number of partitions needs to be configured. The value range is 1 to 32. In TDMQ for Apache Pulsar, messages are sequential in a single partition. That is, if a topic with 1 partition is created, messages are globally sequential. A single-partition topic has poorer performance than a multi-partition topic. To balance performance and sequence, see Subscription Modes and use the Key-Shared mode for consumption. This ensures local sequence. Assign the same key to messages requiring sequential processing, ensuring that they are routed to the same partition. |
Isolate Abnormal Consumer | No | It can be enabled and disabled, and it is disabled by default. When it is enabled, the default acknowledgment timeout period is 1 minute. TDMQ for Apache Pulsar allows the server to proactively isolate abnormal consumers, with an optional acknowledgment timeout period. The acknowledgment timeout period can be set from 1 minute to 24 hours. For scenarios and use cases about abnormal consumer isolation, see Abnormal Consumer Isolation. Enable this feature only after you clearly understand the applicable scenarios of this feature to avoid unnecessary impact on your production system. |
Description | No | Enter the topic description, with a string of no more than 128 characters. |
Parameter | Description |
Topic Name | Topic name, in the format of pulsar-****/namespace/topicName. |
Monitoring | Click ![]() |
Type | The options include Persistent and Non-persistent. |
Creator | User-created or system-created. |
Number of Partitions | Number of partitions in a topic. |
Client | Producer: Displays the value of Number of existing producers in a cluster/Maximum number of producers supported in a cluster. Click to go to the production details page. For details, see Viewing Producer Connection Relationships. Consumer: Displays the value of Number of existing consumers in a cluster/Maximum number of consumers supported in a cluster. Click to go to the consumption details page. For details, see Viewing and Managing Subscription Relationships. Note: When the orange color that represents warning is displayed, the score has reached 80%. When the red color that represents error is displayed, the score has reached 90%. Promptly disconnect any unused client connections. |
Creation Time | Creation time of a topic. |
Description | Topic description. |
retryLetterTopic and deadLetterTopic parameters in deadLetterPolicy in the consumer construction logic, the system automatically creates a retry queue topic named subscriptionName-RETRY and a dead letter queue topic named subscriptionName-DLQ for message sending/receiving. These topics are different from the retry and dead letter queue topics created by enabling the automatic topic creation feature in the console.deadLetterPolicy and are using clients of earlier versions, restarting the consumer will cause messages to be sent to and consumed from the retry queue (named subscriptionName-RETRY) and dead letter queue (named subscriptionName-DLQ). The originally used retry queue (named topicName-subscriptionName-RETRY) and dead letter queue (named topicName-subscriptionName-DLQ) will become invalid, causing message loss.deadLetterPolicy when a consumer is created.Consumer<byte[]> consumer = myClient.newConsumer().topic("persistent://wzjtest-tenant/test-ns/topic1").subscriptionName("sub").enableRetry(true).subscriptionType(SubscriptionType.Shared).deadLetterPolicy(DeadLetterPolicy.builder().maxRedeliverCount(1)//Complete configuration.retryLetterTopic("topic1-sub-RETRY") //Naming convention: topicName-subscriptionName-RETRY.deadLetterTopic("topic1-sub-DLQ") //Naming convention: topicName-subscriptionName-DLQ.build()).subscribe();
Feedback