ruby-amqp / hutch

A system for processing messages from RabbitMQ.
https://gocardless.com/blog/hutch-inter-service-communication-with-rabbitmq/
MIT License
865 stars 138 forks source link

Concern regarding Consumer's metheod "consume" #377

Closed moatazelmohtaseb closed 2 years ago

moatazelmohtaseb commented 2 years ago

In a project I'm working on, there's a concern regarding Hutch::Consumer#consume method:

class TestConsumer
  include Hutch::Consumer
  # consume >> won't be using the consume method

What happens is that all bindings to the test_consumer queue will be removed, even ones I've manually created. Which might be risky in some cases (human errors in dealing with the consume method).

The questions here are following: