Is it possible to bind a single queue to many topics using RabbitMQ STOMP client?
Each time a client sending SUBSCRIBE frame server creates a new queue for it, it makes usage of "prefetch-count" useless for me, because it applies to each subscription individually.
I am just looking for any way to get messages with many topics in the single queue via RabbitMQ Web-STOMP. Any ideas?
4
votes
can you show us some of your code?
– kzhen
There was nothing special in my code. This time I've changed design of my app, but the question is how to bind one queue to many routing keys in RabbitMQ using its STOMP adapter. Currently the server creates new queue when receives SUBSCRIBE frame, but it is not the RabbitMQ style, as far as I understand it.
– Leto III
If this can help, this two frames will cause creation of two different queues:
– Leto III
SUBSCRIBE id:worker-1 destination:/topic/topic-A ack:client-individual
– Leto III
SUBSCRIBE id:worker-1-2 destination:/topic/topic-B ack:client-individual
– Leto III
1 Answers
2
votes
See Documentation:User generated queue names for Topic and Exchange destinations
The header x-queue-name
specified queue name should binding to same queue if there exist, but will exist multiple subscription on client.
The different between AMQP and STOMP concept not compatible in some ways.