Relative Content

Tag Archive for node.jsloopsamqpblockingpg

NodeJS Loop for Blocking Call

I want to implement a deamon, which should wait for an external signal (a NOTIFY from a database or an AMQP message (have to decide it)). This waiting can be implemented in blocking mode. Is there an elegant way in NodeJS to do this without blocking the NodeJS eventloop? Otherwise I would stick with a while loop with blocking calls. But I don’t know, if it’s still done this way in 2024?