Getting Started with Topic Models
prerequisite
Create Queue
Sign in Message Service MNS Console 。 On the left navigation bar, click Queue List 。 In the top menu bar, select Region. stay Queue List Page, click Create Queue 。 stay Create Queue The panel configures the following parameters, and then click determine 。 name : Queue name. Maximum message length : The maximum length of the message body sent to the queue. Long polling time : When there is no message in the queue, the maximum waiting time of the ReceiveMessage request of the queue. Message visibility timeout : The duration after the message is taken from the queue and changed from Active to Inactive. Message saving duration : The longest message lifetime in the queue. After the time specified by this parameter has elapsed since the message was sent to the queue, the message will be deleted regardless of whether it is retrieved. Message timing time : All messages sent to the queue will be consumed after the time specified by this parameter. Enable logging : Whether to enable the log management function.
Queue List Page target queue has been created.
create themes
Sign in Message Service MNS Console 。 On the left navigation bar, click Topic list 。 In the top menu bar, select Region. stay Topic list Page, click create themes 。 stay create themes Panel, configure the following parameters, and then click determine 。 name : Topic name. Maximum message length : The maximum length of the message body sent to the subject. Enable logging : Whether to enable the log management function.
The page jumps to the Subject details Page.
Create Subscription
stay Topic list Page, find the target topic, on its right operation Column Click View Subscription 。 stay View subscriptions to topics Panel, click subscription management 。 stay subscription management Page, click Create Subscription 。 stay Create Subscription Panel, configure the following parameters, and then click determine 。 name : subscription name. Push Type : The push type of the subscription. The default is HTTP. Receiving end address : Address of the receiving end of the push type. Optional: Message Filter Label : Filter messages through the set label. Retry Policy : The retry policy when an error occurs in pushing a message to the receiving end. The retry policy supports selecting any of the following types: Back off retry Exponential decay retry
Message push format : Set the message format of the push message to the receiver. The message push format can be any of the following types: SIMPLIFIED JSON XML
subscription management Page target subscription has been created.
Publish message
stay Topic list Page, find the target topic, on its right operation Column Click Publish message 。 stay Quick experience to publish messages to topics Page, configure the following parameters, and then click Publish message 。 Message content : The body of the message to be published. (Optional) Message label : Label used for message filtering. Push subscription type : The subscription type of the message pushed to the topic. This article takes queues as an example.
The page shows that the message was sent successfully.
receive messages
stay Queue List Page, find the target queue, on its right operation Column Selection 。 Optional: stay Queue messaging quick experience Of the page receive messages Area, click Edit receive message parameters , on Edit receive message parameters Panel Configuration Maximum number of pieces obtained at a time and poll time , and then click determine 。 stay Queue messaging quick experience Of the page receive messages Area, click receive messages 。 receive messages The area displays a list of messages for the queue. Optional: Find the target message in the message list, on the right side operation Column Click details , on Message Details View the message content and other information in the dialog box.
Delete Queue
stay Queue List Page, find the target queue, on its right operation Column Selection 。 stay Tips Dialog box, read the prompt, and then click confirm 。 Queue List Page target queue has been deleted.
Delete Topic
stay Topic list Page, find the target topic, on its right operation Column Selection 。 stay Tips Dialog box, read the prompt, and then click confirm 。 Topic list Page target theme has been deleted. warning Once the topic is deleted, the data cannot be recovered.
-
Introduction to this page (1)