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

发布于 2024-08-23 18:46:53 字数 326 浏览 4 评论 0原文

应用程序上有许多活动需要执行以下操作:

  • 发布到 twitter
  • 发送电子邮件、将图像
  • 缩略图、分成多种大小调用 cron 来查找连接关系

完成这些任务的一个好方法是写入一个异步队列,其中的操作是在异步队列中进行的。执行。

哪种 Django 应用程序可用于在本地实现 Amazon Simple Queue 服务提供的此类功能?

我遇到过 celery。对吗?还有像这样的存在吗?

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

  • Send email, Post to twitter
  • thumbnail an image, into several sizes
  • call a cron to find connected relationships

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?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故人爱我别走 2024-08-30 18:46:53

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文