Exception "No default routing key has been configured for this direct exchange" when use conventional routing #2215
Replies: 2 comments
-
|
That's an unusual usage, and completely defeats the entire purpose of conventional routing if you just want every single message going to that one direct exchange. And why a direct exchange? I assume you googled and found that's a Rabbit MQ issue, right? And yes, it's a misunderstanding of conventional routing. I don't think there's anything actionable here, so I'm converting this to a Discussion. |
Beta Was this translation helpful? Give feedback.
-
|
I'm a newbie in MessageQueues, and I just used RabbitMQ tutorials for better understanding different types of exchanges. https://www.rabbitmq.com/tutorials/tutorial-four-dotnet So, here I see, that direct exchange is an exchange with strict routing / binding name conventions. And I really try to realize the same architecture with one exchange and some subscribers who generates for each message type own queue with bindings to an exchange ("Putting it all together" schema on the page above). Now I try to realize the same with Topic Exchange, but still no great progress - have no errors, but no messages received. This is better description about the problem: https://stackoverflow.com/questions/79893054/wolverinefx-conventional-routing-message-transfer-problem But with the code works well. So, really, what's the routing key for the Order? Why it's not possible to set routing key for sending types via conventional naming? Also I should notice, that the code for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I try to use Wolverine with RabbitMq.
Currently my config for Wolverine is:
LoggerExchange is the durable Exchange created by me earlier manually.
So, each time I try to publish a message, for example, of
Orderclass, I caught an error with message: "No default routing key has been configured for this direct exchange". I tried to use all possible variants, used manuals/docs/samples/tutorials from site, google, chatgpt, grok, but still have this issue.Could you explain me, is this a bug or missunderstanding of ConventionalRouting? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions