tencent cloud

Feedback

Namespace Management

Last updated: 2022-05-23 15:33:59

    Overview

    In TDMQ for RocketMQ, namespace is a resource management concept. It can generally be used to isolate different businesses via customized configurations such as message retention period. Topics, subscriptions, and role permissions in one namespace are all kept separate from those in another.

    This document describes how to create multiple namespaces in TDMQ for RocketMQ to use the same TDMQ for RocketMQ cluster in different scenarios.

    Note:

    Topic and group names must be unique in the same namespace.

    Directions

    Creating namespace

    1. Log in to the TDMQ console, select the region, and click View Namespace in the Operation column of the target cluster to enter the namespace page.
    2. On the Namespace page, click Create to enter the Create Namespace page.
    3. In the Create Namespace window, configure the namespace attributes:
    • Namespace Name: Enter the namespace name, which cannot be modified after creation and can contain 3–64 letters, digits, hyphens, and underscores.
    • Message Retention Period: Set the retention period (0 seconds to 3 days) of unconsumed messages. After a message is successfully produced, it will be stored for a period of time no matter whether it is consumed or not. It will be automatically deleted upon expiration.
    • Remarks: Enter the remarks of the namespace.
    1. Click Save.
      Note:

      Up to ten namespaces can be created in one cluster.

    After the above steps, you can create a topic in the namespace to produce and consume messages.

    Modifying namespace

    You can modify a namespace in the following steps:

    1. On the Namespace list page, click Edit in the Operation column of the target namespace to enter the editing page.
    2. Modify the message TTL, message retention period, or remarks and click Save.

    Deleting namespace

    You can delete a created namespace in the following steps:

    1. On the Namespace list page, click Delete in the Operation column of the target namespace.
    2. In the deletion confirmation pop-up window, click OK.
    Note:

    A namespace with topics cannot be deleted.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support