twingly / twingly-amqp

:bus: Ruby gem for RabbitMQ subscribing and publishing
0 stars 0 forks source link

Bounded queues #62

Closed jage closed 7 years ago

jage commented 7 years ago

https://www.rabbitmq.com/maxlength.html

jage commented 7 years ago

I need to rework the specs, this only worked on my machine because the queue was kept between spec-runs. Don't expect any changes to the library code though.

walro commented 7 years ago

General question, if the queue is already defined, will this change current limits or do we need to redefine our queues?

jage commented 7 years ago

General question, if the queue is already defined, will this change current limits or do we need to redefine our queues?

We need to redefine them. Both good and bad I guess. It will be a very explicit switch, but might require a "migration queue" to avoid loosing messages when deploying.

Generally I think it's important to think how the routing works, that we publish to exchanges and subscribe to queues, if the consumer wants a different limit on the queue it needs to first bind a new queue, then remove the old one. Thus the publisher is not affected at all.