Skip to main content

Create and manage topic

Create topic

A topic is an element that categorizes specific messages or event types, and multiple subscriptions can be added to a single topic.

Here’s how to create a topic in the Pub/Sub service.

info

You can create up to three new topics per project, excluding the Default-Topic.

  1. Go to KakaoCloud Console > Analytics > Pub/Sub.

  2. In the Topic menu, click the [Create topic] button.

  3. In the popup, enter the required information, then click the [Create] button.

    Image Create topic

    FieldDescription
    NameExample: topic-01-test
    Default subscriptionCreate: Create a default pull subscription with the topic
    Not to create: Create only the topic without a default subscription
    Topic message retentionSet the message retention period for the topic
    Description (optional)Additional information about the topic

Manage topic

A topic is an element that categorizes specific messages or event types. Here’s how to manage topics in the Pub/Sub.

View topic list

You can view the list of created topics and their basic information.

  1. Go to KakaoCloud Console > Analytics > Pub/Sub.

  2. In the Topic menu, view the list of topics.

    Image Topic list

    ItemDescription
    NameName of the topic as designated by the user
    Number of subscriptionsNumber of subscriptions included in the topic
    - Unit: items
    EncryptionWhether the topic is encrypted
    - Currently, the default is Enabled, with further updates planned
    Message retentionRetention period for messages stored in the topic
    CreatorUser who created the topic

View topic details

You can view detailed information about a topic.

  1. Go to KakaoCloud Console > Analytics > Pub/Sub.

  2. In the Topic menu, select a topic.

  3. Check the details on the topic’s detail page.

    ItemDescription
    Number of subscriptionsNumber of subscriptions included in the topic
    Topic IDUnique ID of the topic
    Topic message retentionRetention period for messages in the topic, up to 7 days
    *Default-Topic can be modified up to 31 days
    CreatorUser who created the topic
    Created atDate the topic was created

Modify topic

You can modify the description and retention period of a topic. The retention period can be set from a minimum of 10 minutes to a maximum of 7 days.

info

Currently, the topic retention period can only be extended. The ability to shorten the period will be added in a future update.
For the Default-Topic, the retention period can be set from 7 to 31 days.

  1. Go to KakaoCloud Console > Analytics > Pub/Sub.

  2. In the Topic menu, select the [More] icon > Modify.

  3. In the popup, change the retention period to the desired duration, then click [Save].

    Image Modify topic

Delete topic

You can delete topics that are no longer needed.

info

Deleted topics cannot be recovered, and their associated subscriptions will also be deleted.

  1. Go to KakaoCloud Console > Analytics > Pub/Sub.
  2. In the Topic menu, select the [More] icon > Delete.
  3. In the popup, enter the name of the topic to delete, then click [Delete].

Monitor topic

In the Monitoring tab of a topic, you can check the monitoring results for the topic and its connected subscriptions.

info
  • Topic monitoring is not supported for Default-Topic.
  • It may take some time to aggregate unprocessed messages during subscription monitoring, and messages that exceed the retry attempt limits are excluded from the aggregation.
  1. Go to the KakaoCloud Console > Analytics > Pub/Sub menu.

  2. In the Topic menu, select the topic you want to monitor.

  3. Select the Monitoring tab to view the topic's details.

    Metrics provided by topics
    Metric NameUnitDescription
    Published messages per seccount/sNumber of messages published to the topic per second
    Publish requests per seccount/sNumber of publish requests made to the topic per second
    Average message size per secbytes/sAverage size of messages published to the topic per second
    Publish throughput per secbytes/sAmount of data published to the topic per second
    Average messages per publish requestcount/sAverage number of messages per publish request per second
    Stored databytesTotal size of data stored in the topic
  4. In the Monitoring tab, select the subscription and choose the subscription you want to view. For details, refer to Monitor subscription.