Create and manage subscription
Create subscription
Messages published to a topic can be received through subscriptions. Subscriptions provide two types of message transmission methods: Pull
and Push
. Here's how to create a subscription in the Pub/Sub service.
You can create up to 5 subscriptions per project.
-
Go to KakaoCloud Console > Analytics > Pub/Sub.
-
Click the [Create subscription] button in the Subscription menu.
-
After entering the information, click the [Create] button.
Create subscription
Item Description Basic settings Name: Example: sub-01-test
Topic: Select the topic to create the subscription forType Pull: The user requests to send a message Push: This is a type of message transmission from Pub/Sub. Endpoint URL input is required.
- PROTOCOL: Enter HTTP/HTTPS
- METHOD: POST
When creating a Push type subscription
(1) Inbound policy setting of the security group of the resource connected to the endpoint is required to allow Pub/Sub Push
- Push subscription of Default-Topic
-kr-central-1
Source IP range: 210.109.79.7 ~ 210.109.79.16
-kr-central-2
Source IP: 61.109.235.11
- Push subscription of User Topic
; -kr-central-1
Source IP: 210.109.60.15, 210.109.60.92, 210.109.60.144, 210.109.61.176, 210.109.62.134
-kr-central-2
Source IP: 61.109.238.137, 61.109.238.107, 61.109.237.249, 61.109.238.114, 61.109.238.74, 61.109.236.65
(2) Message Push is possible only with the endpoint URL of each region using KakaoCloud public IPSubscription message retention Set the message retention period of the subscription
- Period range: Set within 10 minutes - 7 days
- Must be equal to or less than the topic message retention periodResponse wait time Time to wait for message confirmation response
- Time range: Set within 10 - 600 seconds (10 minutes)Retry attempts Specify the number of times to reprocess a message if there is no response within the waiting time
For security reasons, Ports 22, 1433, 1521, 3306, 3389, 6379, 27017 cannot be set as Push endpoints.
Manage subscription
The following is how to manage subscriptions in the Pub/Sub.
View subscription list
You can check the list of currently created subscriptions and basic information about the subscriptions.
-
Go to KakaoCloud Console > Analytics > Pub/Sub menu.
-
Check the subscription list in the Subscription menu.
Subscription list
Category Description Name Name of subscription Status Subscription status
-Active
: Active status
-In Progress
: Working
-Error
: Subscription is abnormal and cannot operate properly
-Expired
: There are no tasks for the created subscription and it is unavailable due to the Expiration Policy
Internal resources are deleted, and only deletion is possible thereafter
*Expiration Policy: The number of unprocessed subscriptions is maintained at 10,000 or more for 1 hourType Types of subscriptions
- Pull: User requests message transmission
- Push: Sends message in Pub/SubTopic name Name of the topic to which the subscription belongs Message retention Message retention period of the subscription Response wait time Time to wait for message response Creator User who created the subscription [More] icon - Modify: Modify subscription settings
- Delete: Delete the subscription
- Rewind timestamp: Revert subscription time
View subscription details
You can check the detailed information of the subscription.
-
Go to KakaoCloud Console > Analytics > Pub/Sub menu.
-
Select a subscription from the Subscription menu.
-
Check the information on the subscription details page.
Subscription details
Modify subscription
You can modify the detailed settings of the subscription.
Currently, the subscription retention period can only be extended. The period reduction function will be updated in the future.
-
Go to the KakaoCloud Console > Analytics > Pub/Sub menu.
-
Click on the Subscription menu, then select the [More] icon > Modify.
-
In the pop-up, change the subscription settings and click the [Modify] button.
Modify subscription
Rewind timestamp
This function reverts a subscription to a specific time, allowing you to receive all messages after the reverted time. However, messages whose retention period has expired in the topic cannot be received again even if the time is reverted in the subscription.
You cannot roll back the time before the topic creation time to which the subscription belongs.
-
Go to KakaoCloud Console > Analytics > Pub/Sub menu.
-
In the Subscription menu, select the [More] icon > Rewind timestamp.
-
In the pop-up window, set the time to roll back to, and then click the [Rewind timestamp] button.
Rewind timestamp
Delete subscription
You can delete a subscription that is no longer in use.
Deleted subscriptions cannot be recovered.
- Go to KakaoCloud Console > Analytics > Pub/Sub menu.
- Click the Subscription menu, then select the [More] icon > Delete.
- Change the subscription settings and click the [Delete] button.
Monitor subscription
You can check the monitoring results of the selected subscription.
Subscription monitoring may take some time to aggregate unprocessed messages, and messages that have exceeded the retry count will be excluded from the aggregation.
-
Select KakaoCloud Console > Pub/Sub menu
-
Select the subscription to be monitored from the Subscription menu.
-
Select the Monitoring tab.