ruby-amqp / hutch

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

Enable Lazy mode for queues #340

Closed arthurmde closed 4 years ago

arthurmde commented 4 years ago

It would be interesting if Hutch offered options to set the consumers' queues as lazy through an option such as queue_name.

Lazy queues are recommended in some use cases.

arthurmde commented 4 years ago

I can provide a PR if it is in the scope of the project ;)

michaelklishin commented 4 years ago

@arthurmde yes, absolutely. Please do! Thank you!

michaelklishin commented 4 years ago

While at it we should support quorum queues. Since both use optional queue arguments (queue type does not support policies as it cannot be changed at runtime), it makes sense to add support for both at once.

michaelklishin commented 4 years ago

Note that #348 undoes some of the defaults for Hutch 1.0 because it breaks backwards compatibility for some installations.