Create, edit, monitor, and delete queues in the Simple Message Queue (SMQ) console.
Prerequisites
Create a queue
Log on to the SMQ console.
In the left-side navigation pane, choose Queue Model > Queues.
In the top navigation bar, select a region.
On the Queues page, click Create Queue.
In the Create Queue panel, configure the following parameters and click OK.
Name: the name of the queue.
Maximum Message Length: the maximum length of the message that is sent to the queue.
Long Polling Period: the maximum duration for which long polling requests are held after the ReceiveMessage operation is called. The value 0 indicates that long polling is disabled.
Visibility Timeout Period: the duration for which a message stays in the Inactive state after the message is received from the queue. For more information, see Message visibility.
Message Retention Period: the maximum duration for which a message exists in the queue. After the specified retention period, the message is deleted regardless of whether the message is received.
Message Delay Period: the period after which all messages sent to the queue are consumed.
Enable Logging Feature: specifies whether to enable the logging feature. If this feature is enabled, SMQ automatically pushes the operation logs of this queue to the specified Logstore. You can then view the message trace, delay, and other information from the logs. For more information, see Log management.
The queue appears on the Queues page.
Edit a queue
On the Queues page, find the target queue, and in the Actions column, choose .
In the Edit a queue panel, modify the queue settings and click OK.
The updated configuration appears in the Basic Information section of the Queue Details page.
Find a queue
On the Queues page, enter a queue name prefix in the search box and click the search icon.
Queues whose names start with the specified prefix are displayed.
View queue details
On the Queues page, find the target queue and click Details in the Actions column.
On the Queue Details page, view the queue details.
Get endpoints
On the Queues page, find the target queue and click Details in the Actions column.
On the Queue Details page, find the endpoints for Internet Access and Internal Access in the Endpoint section.
NoteEndpoints support both HTTP and HTTPS.
Send a message
On the Queues page, find the target queue, and in the Action column, choose .
On the Quick Experience page, in the Send Message section, enter the Message Content and Message Delay Period, and then click Send Message.
A "Message sent successfully" message appears.
Receive messages
On the Queues page, find the target queue, and in the Action column, choose .
Optional: In the Quick Experience page, in the Receive Message section, click Edit Parameters of Receiving Messages. In the Edit Parameters of Receiving Messages panel, configure Receive Times and Polling Period, and then click OK.
On the Quick Experience page, in the Receive Message section, click Receive Message.
The Receive Message section lists the received messages.
Optional: In the message list, find the desired message and click Details in its Actions column. The Details dialog box shows the message content and other information.
View queue metrics
On the Queues page, find the target queue, and in the Actions column, choose .
The Cloud Monitor section displays queue metrics.
NoteTo configure alerts for this queue, Create an alert rule.
Delete a queue
On the Queues page, find the target queue, and in the Actions column, choose .
In the Note dialog box, read the message and click OK.
The queue is deleted from the Queues page.
WarningDeleting a queue is irreversible.
Stop all API requests to the queue before deletion. Active requests continue to incur charges.