priority resources dispatcher for nodejs