title: Is There a Way to Limit the Number of Consumers on a RabbitMQ Queue?
body: <p>I've got a RabbitMQ setup with lots of queues. Due to the nature of the data in each queue, it has to be processed in strict order, so we can only permit a single consumer on each queue. This isn't a problem as such, but we do run the risk of accidentally starting a second consumer on a queue, which would be a bad thing. There's lots of queues and lots of app servers and it would just take a small typo for us to end up in this situartion.</p>
  
  <p>Before I spend time changing the software to effectively "lock" a queue (storing that lock in a DB or something), is there anything in RabbitMQ that can limit the number of consumers a queue can have? If so, I can limit my queues to just one consumer and my risk of multiple consumers goes away.</p>
  
  <p>Cheers!</p>