This article covers the basic operations within RabbitMQ Management UI (Management Interface). For more content, please refer to the RabbitMQ Official Documentation.
If the instance does not have the external cluster access feature enabled, a load balancer must be configured to set up a reverse proxy.
In the Client area, click Add management port.
Configure the related parameters according to the instructions below.
Parameter | Description |
---|---|
Load Balancer | Producers and consumers outside the cluster will access the instance through the address of this load balancer. |
Port | The load balancer listens for access traffic on this port and receives TCP access requests from producers and consumers. |
Internal Routing Group | Access traffic will be forwarded to the instance by default through this internal router. |
Session Persistence | If session persistence is based on source address hashing, access requests from the same IP address will always be forwarded to the corresponding backend service of the internal router. |
Click Add.
Click the link provided in the Port column to log into RabbitMQ Management UI in a new browser tab.
In the left navigation bar, click RabbitMQ.
Click on Instance Name.
In the Access Method tab, click on Management Portal Address.
After logging into RabbitMQ Management UI, the page appears as shown in the figure below:
Refer to User Management to obtain login information.
Create an Exchange.
In the Exchanges tab, expand Add a new exchange.
Fill in the relevant information and click Add exchange.
Create a Queue.
In the Queues tab, expand Add a new queue.
Fill in the relevant information and click Add queue.
Tip: Configuring reasonable message timeout parameters (e.g.,
x-message-ttl=3600000
) can avoid message backlog. Excessive message backlog may cause persistent volume claims to be impacted due to leftover unconsumed old messages, resulting in insufficient space to accommodate new messages.
Bind the Queue to the Exchange.
In the Exchanges tab, click on the name of the exchange.
Expand Bindings, fill in the name of the target queue, and set the Routing key.
Click Bind.
Send Messages.
In the Exchanges tab, click on the name of the exchange.
Expand Publish message, enter the Routing key set in the exchange, and fill in the message content in Payload.
Click Publish message.
Receive Messages.
In the Queues tab, click on the name of the queue.
Expand Get messages and click Get Message(s).
View the message content.