Advanced resource pool for Node.JS