Kue基于 Redis 的优先级队列

联合创作 · 2023-10-01 15:33

Kue 是一款为 node.js 而构建,由 redis 支持的优先级队列。

更新记录:

运行系统环境要求:

  • Redis >= 2.6.12

安装

  • 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()
浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报