skip to Main Content

Nodejs redis method BLPOP blocks the event-loop

I use the library node-redis: https://github.com/NodeRedis/node-redis let client = redis.createClient(); let blpopAsync = util.promisify(client.blpop).bind(client); let rpushAsync = util.promisify(client.rpush).bind(client); async function consume() { let data = await blpopAsync('queue', 0); // the program is blocked at here } async function otherLongRunningTasks() {…

VIEW QUESTION
Back To Top
Search