This topic describes how to create a queue to store messages in the Message Queue for RabbitMQ console.

Prerequisites

Before you create a queue, make sure that the following operations are complete:

Procedure

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the top navigation bar, select the region where your instance resides.
  3. In the left-side navigation pane, click Queues.
  4. On the Queues page, select an instance and a vhost and click Create Queue.
  5. In the Create Queue dialog box, specify Queue Name, Auto Delete, and Arguments, and click OK.
    pg_create_queue
    Parameter Description Remarks
    Queue Name The name of the queue.
    • The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@).
    • It must be 1 to 255 characters in length.
    • After a queue is created, you cannot modify its name. If you want to modify its name, delete the queue and create a new queue.
    • The name of a queue cannot start with amq., which is used as a reserved field. For example, amq.test is an invalid name.
    Auto Delete Specifies whether the queue is automatically deleted after the last subscription from consumers to this queue is canceled.
    • true: The queue is automatically deleted after the last subscription from consumers to this queue is canceled.
    • false: The queue is not automatically deleted after the last subscription from consumers to this queue is canceled.
    Arguments Other parameters of the queue, such as the dead-letter exchange, dead-letter routing key, and message TTL.
    • DeadLetterExchange: the exchange to which dead-letter messages are sent.
    • DeadLetterRoutingKey: the routing key of a dead-letter message. A dead-letter exchange sends a dead-letter message to the queue whose binding key matches the routing key of the dead-letter message.
    • MessageTTL: the message expiration time, in milliseconds. A message that is not consumed within message TTL is a dead-letter message. The dead-letter message is sent to a dead-letter exchange.

Result

You can view the created queue on the Queues page.create_queue_result