Search code examples
rabbitmqnode-amqpnode-amqplib

node-amqp, limit the socket time for listening events


Assuming that I like 100000 events on my rabbitmq queue, what is the best way to limit a system to handle them in series vs trying to consume all at once?

I'm trying several options, however, the machine freezes trying to handle them all at once.


Solution

  • I've found my answer, I just need to use prefetch to ensure that I can handle n number of values at once.