file

Getting Started with Queue Models

important

This article contains important information that needs your attention. Ignoring this information may affect your business. Please read it carefully.

This article shows you how to Message Service MNS Console Start using queue model quickly.

prerequisite

Activate the message service MNS and authorize it

Create Queue

  1. Sign in Message Service MNS Console

  2. On the left navigation bar, click Queue List

  3. In the top menu bar, select Region.

  4. stay Queue List Page, click Create Queue

  5. 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

  1. stay Queue List Page, find the target queue, on its right operation Column Selection more > Send and receive messages

  2. 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

  1. stay Queue List Page, find the target queue, on its right operation Column Selection more > Send and receive messages

  2. 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

  3. 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.

  4. 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

  1. stay Queue List , find the target queue, on its right operation Column Selection more > delete

  2. 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)