This topic describes how to manage queues in the MNS console.

Prerequisites

The following operations are performed:

Create a queue

To create a queue named MyQueue in the MNS console, perform the following steps.

  1. Select a region in the top navigation bar.
  2. In the left-side navigation pane, click Queues.
  3. In the upper-right corner of the Queues page, click Create Queue.
  4. In the Create Queue dialog box, specify the parameters and click OK.

Modify a queue

To modify MyQueue, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. In the queue list of the Queues page, find MyQueue. In the Action column, click Modify.
  3. In the Modify Queue dialog box, modify the parameter settings and click OK.

Query a queue list

You can specify a keyword to search for all queues whose names start with the keyword. The keyword is case-sensitive. To query a queue list by using a keyword, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. In the search box next to Queue Name on the Queue Name page, enter a prefix, for example, test. Then, click Search.Query a queue list

    The queues with the specified prefix are displayed.

View the endpoint information

To view the endpoint information, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. On the Queues page of the console, click Get Endpoint in the upper-right corner of the page.
  3. In the Get Endpoint dialog box, view the Internet endpoint and virtual private cloud (VPC) endpoint.

    You can use HTTP or HTTPS to access the endpoints.

Delete a queue

To delete MyQueue, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. On the Queues page of the console, find MyQueue. In the Action column, click Delete.
  3. In the Prompt message, click OK.

Send messages

To send messages to MyQueue, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. On the Queues page of the console, find MyQueue. In the Action column, click Send Message.
  3. In the Send Message dialog box, enter a message and click Send Message.

Receive messages

After you send messages to MyQueue, you can receive messages from the queue. You can check the message content to ensure that the messages that are sent to the queue and the messages that you receive are the same. To receive a message from MyQueue, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. On the Queues page of the console, find MyQueue. In the Action column, click Receive Message.
  3. In the Receive Message dialog box, you can view the details of the message that you want to receive.

    After the Receive Message dialog box appears, MNS receives the message. If you want to receive other messages that are sent to the queue, click Receive Message.

    Receive messages

Delete messages

To delete received messages from MyQueue, perform the following steps:

  1. In the left-side navigation pane, click Queues.
  2. On the Queues page of the console, find MyQueue. In the Action column, click Receive Message.
  3. In the Receive Message dialog box, you can view the details of the message that you want to receive.

    After the Receive Message dialog box appears, MNS receives the message.

  4. In the Receive Message dialog box, select Auto delete received messages, and then click Receive Message.