异步消息队列和处理,如 django 中的 Amazon Simple Queue 服务
应用程序上有许多活动需要执行以下操作:
- 发布到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.