| |
| Enter a name for the topic. Naming rules: - The length must be between 3 and 127 characters.
- Only letters, numbers, hyphens (-), and underscores (_) are allowed.
- The topic name must be unique within each instance. However, topic names can be duplicated across different instances.
- The topic name cannot contain any of the following reserved strings or prefixes:
- Reserved strings: RMQ_SYS_TRANS_OP_HALF_TOPIC, BenchmarkTest, TBW102, OFFSET_MOVED_EVENT, SELF_TEST_TOPIC, RMQ_SYS_TRANS_HALF_TOPIC, SCHEDULE_TOPIC_XXXX, and RMQ_SYS_TRACE_TOPIC
- Prefixes: rocketmq-broker-, %RETRY%, rmq_sys_, and %DLQ%
|
| Specify the number of queues for the topic. This value cannot exceed the number of available queues for the instance. For queue quotas by instance specification, see Product specifications. When creating a topic in a 4.x instance: - The default number of queues for a topic that receives global sequential messages is one.
- The default is six queues for topics that receive other message types and instance specifications no higher than n3. For specifications higher than n3, the default is twice the number of broker groups.
- We recommend setting the queue count to a multiple of the number of compute nodes. Otherwise, data may be distributed unevenly across brokers. For example, since rocketmq.n3.x2.medium has three compute nodes, use 3, 6, 9, or another number that is a multiple of 3.
When creating a topic in a 5.x instance: - The default number of queues for a topic that receives global sequential messages is one.
- The default is twice the number of broker groups for topics that receive other message types.
- In non-ordered messaging scenarios, the number of queues does not impact performance. Additional queues only increase concurrency for ordered message consumption.
|
| Provide additional information for the topic. The description can contain 0–256 characters. |
| Select the type of message that the topic receives. - Ordinary message: These messages are suitable for asynchronous decoupling between systems, traffic shaping, log services, cache synchronization across large-scale machine fleets, and real-time computing and analytics.
- Transaction message: These messages provide distributed transaction capabilities similar to X/Open XA and help achieve eventual consistency for distributed transactions.
- Partition order messages: These messages are partitioned by a sharding key. Messages within a partition are published and consumed in a strict first-in, first-out (FIFO) order, which improves concurrency and overall performance.
- Global sequential message: Each topic has one queue, and all messages are published and consumed according to the FIFO principle. If a message is not consumed successfully, the next message is stored in the topic queue.
- Delayed messages: These messages are delivered at a specified time after being sent to the Message Queue for RocketMQ server. For example, you can schedule a message to be delivered 30 minutes after it is sent.
tip - Each topic can only receive one type of message. Once a topic is created, you cannot change its message type.
- A service node failure may temporarily disrupt the order of partition order messages and global sequential messages. Partition order messages may also become disorganized during specification changes and queue extensions.
- Delayed messages support custom delays at the millisecond level. The maximum delay is whichever is smaller: three days or three times the message retention period.
|
| Configure custom permissions for each RocketMQ key within the topic. If you do not do this, the keys will retain their default permissions. - To configure permissions in bulk, enable Batch authorization. Then, select multiple keys and configure their custom permissions for the topic.
- To configure permissions individually, select a key and configure its custom permissions for the topic.
- For example, if the default permission for Key A is Reject and you set its custom permission to Publish, Key A will receive the Publish permission for this topic after it is created.
tip - If you want to configure key permissions when creating a topic, but there is no available key, see Creating keys.
|