1

Using amqplib module for Node JS and RabbitMQ,

1) is there any way to tell how many subscribers there are on a queue?

2) How can i make each queue should have one consumer key?

Thanks!

Prak
  • 175
  • 1
  • 7

1 Answers1

0

AMQP's basic.consume should return the number of consumers a queue has: http://www.rabbitmq.com/amqp-0-9-1-quickref.html

To have just one consumer, send a basic.consume with exclusive=true

old_sound
  • 2,243
  • 1
  • 13
  • 16