tencent cloud

Bind Routing Relationship
Last updated: 2025-08-11 10:37:21
Bind Routing Relationship
Last updated: 2025-08-11 10:37:21
A Routing Relationship defines the rule for message transmission from an Exchange to another Exchange or Queue. When a message is sent to an Exchange by a producer, the Exchange automatically forwards the message to the bound Target Exchange or Queue based on preset routing rules. An Exchange can bind to multiple Target Exchanges or Queues, and a Queue can bind to multiple source Exchanges.
This article introduces the directions to create binding rules through the console.

Restrictions and Limitations

In open-source Managed Clusters, the default Exchange named "(AMQP default exchange)" is automatically created by the system and bound by default to each Queue, with the routing key equal to the Queue Name. The binding relationship of the default Exchange is unable to cancel or delete.
Exchanges with Internal set to true cannot be used directly by Producers and can only be used for RabbitMQ's internal routing mechanism. If messages are published directly to them, an error will be returned. They can form a routing chain by binding to other Exchanges or Queues.

Prerequisites

The Exchange or Queue that should be bound has been created in advance.

Creating a Binding Relationship

1. Log in to the TDMQ for RabbitMQ console. There are multiple entry points for binding routing relationships:
Entry 1: Select Cluster Management > Exchange list in the left sidebar, find the Target Exchange, and click Bind Routing in the operation bar. At this point, the Exchange can only be bound as a source Exchange, and the binding target can choose Exchange or Queue.
Entry 2: Select Cluster Management > Queue list in the left sidebar, find the target Queue, and click Bind Routing in the operation bar. At this point, the specified Queue serves as the binding target, and the source Exchange can be bound to it.
Portal 3: Select Cluster Management > Vhost in the left sidebar, find the target Vhost, click the name of the Vhost, select the Routing Relationship tab at the top of the page, and click Create. At this point, you can freely set the source Exchange and bind target.
2. In the newly-added binding relationship pop-up window, set the source Exchange, bind Key, binding target type, and binding target, then click Submit to complete the binding relationship creation.


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback