django中的Amazon Simple Queue服务等异步消息队列和处理

时间:2022-02-11 17:38:07

There are many activities on an application that need things like:

应用程序上有许多活动需要以下内容:

  • Send email, Post to twitter
  • 发送电子邮件,发布到Twitter

  • thumbnail an image, into several sizes
  • 将图像缩小为多种尺寸

  • call a cron to find connected relationships
  • 打电话给cron找到连接的关系

A good way to do these tasks is to write into an asynchronous queue on which operations are performed.

执行这些任务的一种好方法是写入执行操作的异步队列。

What django application can be used to implement such functionality, as the one Amazon Simple Queue service offers, locally?

什么django应用程序可以用来实现这样的功能,就像Amazon Simple Queue服务在本地提供的那样?

I have come across celery. Right thing? Anything else that exists, like this?

我遇到过芹菜。正确的事?还有其他什么东西,比如这样吗?

1 个解决方案

#1


1  

Beanstalkd can also do what you want, and I've used it (though not from Python) to do some similar things (resizing images, and running other background tasks). There are a couple of Python client libraries to interface with it.

Beanstalkd也可以做你想要的,我已经用它(虽然不是来自Python)来做类似的事情(调整图像大小,运行其他后台任务)。有几个Python客户端库可以与它进行交互。

#1


1  

Beanstalkd can also do what you want, and I've used it (though not from Python) to do some similar things (resizing images, and running other background tasks). There are a couple of Python client libraries to interface with it.

Beanstalkd也可以做你想要的,我已经用它(虽然不是来自Python)来做类似的事情(调整图像大小,运行其他后台任务)。有几个Python客户端库可以与它进行交互。