Python任务队列替代方案和框架 [英] Python task queue alternatives and frameworks

查看:123
本文介绍了Python任务队列替代方案和框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python 3的任务/作业队列似乎有不同的实现方式。

There seem to be different implementations of task/job queues for Python 3:


  1. 芹菜,受欢迎但显然没有维护和陈旧;

  2. RQ ,我几乎没有信息;

  3. TaskTiger ,与RQ类似,我对此一无所知;

  4. Huey ,与RQ类似,我对此知之甚少;

  5. WorQ 的最新更新是2016年。

  1. Celery, popular but apparently unmaintained and stale;
  2. RQ, of which I have little information;
  3. TaskTiger, similarly to RQ I know little about it;
  4. Huey , similarly to RQ I know little about it;
  5. WorQ had its last update in 2016.

然后有基于云的解决方案,例如 Google的任务队列API AWS的Cloud Watch事件,但这更多的是不得已。

Then there are "cloud" based solutions like Google’s Task Queue API or AWS’s Cloud Watch Events, but that’s more of a last resort.

对于我的项目,我正在寻找一个稳定 active 任务队列实现。在过去的一年中,我一直使用Celery,但令人担忧的是缺乏支持以及对现有bug的疏忽。

For my project I am looking for a stable and active task queue implementation. I’ve used Celery for the past year, but the lack of support and non-attention to existing bugs is worrisome.

存在哪些替代方案?

推荐答案

我写了 Dramatiq 特别是因为我对Celery的专业使用多年困扰越来越大。在动机页面上查看为什么以及Dramatiq,Celery和RQ之间的功能比较。一些重点:

I wrote Dramatiq specifically because of my increasing frustration with Celery having used it professionally for years. Check out the motivation page the "why" and a feature comparison between Dramatiq, Celery and RQ. Some highlights:


  • 积极开发并用于生产中

  • 优秀文档

  • 自动重试

  • 代码自动重新加载

  • 锁定和速率限制

  • redis和rabbitmq支持

  • actively developed and used in production
  • great docs
  • automatic retries
  • code auto-reload
  • locks and rate limiting
  • redis and rabbitmq support

这篇关于Python任务队列替代方案和框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆