Getting Started with Queue 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.
return Queue List Page to view that the target queue has been created.
send message
stay Queue List Page, find the target queue, on its right operation Column Selection 。 stay Queue messaging quick experience Of the page send message Area, entering Message content and Message timing time , and then click send message 。 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 , 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. warning Once the queue is deleted, the data cannot be recovered. Before deleting a queue, stop API requests to the queue, or API requests to the queue will still incur costs.
-
Introduction to this page (1)