In my app there is one direct exchange, each consumer has one exclusive queue, and then each queue has multiple bindings with the exchange.
queue.bind(exchange, routing_key: 'id1') queue.bind(exchange, routing_key: 'id2')
queue.unbind(exchange, routing_key: 'id2') #=> Unbind ONLY id2 (DO NOT WORKS)
But the unbind method does not have routing_key option, and will just remove all declared bindings in queue.
How could I unbind only one binding, not the whole queue?
Is there any other pattern I should be using? (for example, I could use multiple queues per consumer, but this looks very inefficient)
--
PD: This question is also in
StackOverflow