Kue 是一款为 node.js 而构建,由 redis 支持的优先级队列。
更新记录:
0.9 -> 0.10
0.8 -> 0.9
运行系统环境要求:
安装
Latest release:
$ npm install kue
Master branch:
$ npm install http://github.com/Automattic/kue/tarball/master
特性:
Delayed jobs
Distribution of parallel work load
Job event and progress pubsub
Job TTL
Optional retries with backoff
Graceful workers shutdown
Full-text search capabilities
RESTful JSON API
Rich integrated UI
Infinite scrolling
UI progress indication
Job specific logging
Powered by Redis
示例代码:
queue.create('email', { title: 'welcome email for tj' , to: 'tj@learnboost.com' , template: 'welcome-email' }).priority('high').save()