I'm trying to write a application that tests the effect of having N exchanges bound to the same queues on Memory, IO etc.
The tests all use a 'Topic' exchange type. The problem I'm having is that when I test with more than 1 exchange, I'm not receiving all the messages that I publish back. When I use 1 exchange however, I receive all the messages.
Any ideas why this could be?
Thanks.
EDIT:
I have a queue that's bound to two "topic" exchanges using the same binding keys of:
- *.system.log.#
- #.system.error
I'm publishing two messages to each exchange as follows:
Exchange 0
- [Body] Message 0 [Routing Key] #.system.error
- [Body] Message 1 [Routing Key] *.system.log.#
Exchange 1
- [Body] Message 0 [Routing Key] #.system.error
- [Body] Message 1 [Routing Key] *.system.log.#
I have one consumer listening to the queue, but only the following messages get recieved:
- Message with Routing Key (*.system.log.#), from exchange 0, with body 'Message 1'
- Message with Routing Key (*.system.log.#), from exchange 1, with body 'Message 1'
Any ideas?