Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Handling orphan queues #29

Closed
arnauorriols opened this issue Aug 10, 2016 · 2 comments
Closed

Handling orphan queues #29

arnauorriols opened this issue Aug 10, 2016 · 2 comments
Labels

Comments

@arnauorriols
Copy link

(This is not an issue, but a general AMQP question that arises when using this exchange type)

This exchange is aimed at scaling not by having n consumers for a queue, but having 1 queue for consumer, and n queues.

This requires flexibility in adding or removing queues. For instance, if I add a new worker to my worker set, I will create a new queue, bind it to the consistent-hash exchange, and it will start to get its share of messages. Likewise, if I remove a new worker from my worker set, (for maintenance, because it crashed, downscaling...) I need my queue to be removed as well, otherwise it will fill up with messages that won't get consumed.

As you can imagine, ignoring the race condition in the routing mentioned, I must guarantee that "at most" all messages are processed by my workers. Do you have any suggestion on how to deal with the messages that might be inside the queue that I need deleted?

Thanks.

@michaelklishin
Copy link
Member

Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you.

@andrewmichaelsmith
Copy link

I'm also interested by this problem and have posted the q on stackoverflow: http://stackoverflow.com/questions/38872992/rabbitmq-scaling-queues-with-the-consistent-hash-exchange.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants