This topic describes how to create a queue to store messages in the Message Queue for RabbitMQ console.
- Log on to the Message Queue for RabbitMQ console.
- In the top navigation bar, select the region where your instance resides.
- In the left-side navigation pane, click Queues.
- On the Queues page, select an instance and a vhost and click Create Queue.
- In the Create Queue dialog box, specify Queue Name, Auto Delete, and Arguments, and click OK.
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.