inway / mojo-rabbitmq-client

Mojo::IOLoop based RabbitMQ (AMQP) client
Artistic License 2.0
15 stars 17 forks source link

Queue name as routing key #12

Closed kraih closed 6 years ago

kraih commented 6 years ago

This looks like a bug, the queue name is hardcoded as routing key here in Mojo::RabbitMQ::Client::Consumer.

tyldum commented 6 years ago

See #5

SPodjasek commented 6 years ago

@kraih Your're right, I believe that all of this: https://github.com/inway/mojo-rabbitmq-client/blob/4ac402a2f881e0da2b2e1da73ab5e321d97b60bb/lib/Mojo/RabbitMQ/Client/Consumer.pm#L47-L53 should be optional, clearly requested by developer.

IMHO Queue binding is part of RabbitMQ setup, not to be enforced by consumer. It was made that way as most common case, to speed up some things up for me (100% of my queues have routing_key as queue_name).