"routingKey" pattern #629
Unanswered
AndreYurin
asked this question in
Q&A
Replies: 1 comment
-
You are using the incorrect decorator for a Topic Exchange. Use RabbitSubscribe instead.
Here is another example of how I am using it:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
First of all, thanks for the lib. So far everything is working well!
I have a question about the RabbitMQ lib:
Could you please answer if it supports "message pattern" with * or # (https://www.rabbitmq.com/tutorials/tutorial-five-javascript.html)? The binding works, I can see it in RabbitMQ, but the consumer does not receive messages. It receives message only if routingKey of message will be exactly with * or #. For example:
I have exchange "test" with "topic" type.
I use
@RabbitRPC({ exchange: 'test', queue: 'testqueue', routingKey: 'testing.#' })
I publish message with
const response = await this.amqpConnection.request({ exchange: 'test', routingKey: 'testing.test', payload: { message: "value", } });
but consumer doesn't receive this message.
It will get it if I publish with
const response = await this.amqpConnection.request({ exchange: 'test', routingKey: 'testing.#', payload: { message: "value", } });
Beta Was this translation helpful? Give feedback.
All reactions