Efficient queue manager/processer in node.js