Direct exchange does not route messages when queues are bound with the # pattern #11268
-
Describe the bugWhen using a custom DirectExchange in RabbitMQ and binding a queue to it with the routing key #, the queue does not receive any messages, even though it should receive messages with any routing key. Reproduction steps
Expected behaviorExpected behavior Actual behavior Additional contextExample code
This code snippet demonstrates the issue where the queue does not receive messages when binding it to the custom direct exchange with routing key #. Here's the version information you provided:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Results that do not meet expectations
|
Beta Was this translation helpful? Give feedback.
-
@joeljhou your expectations are not correct. Direct exchanges do not use patterns, topic exchanges do. See tutorial 5. Direct exchanges technically can route to multiple queues if they are bound with the same exact routing key but they do not and never have supported patterns. |
Beta Was this translation helpful? Give feedback.
@joeljhou your expectations are not correct. Direct exchanges do not use patterns, topic exchanges do. See tutorial 5.
Direct exchanges technically can route to multiple queues if they are bound with the same exact routing key but they do not and never have supported patterns.