是否可以将 Celery 与其他编程语言一起使用?

发布于 2024-11-20 00:30:03 字数 504 浏览 8 评论 0原文

我听说过芹菜,我真的很喜欢它。但现在我正在使用 node.js 编写一个应用程序,我必须管理(异步)任务,并且我想使用 celery 来实现这一点。我已经将它安装在我的开发环境中并使用了一些 python 脚本。一切都运行良好,但我想用 node.js“调用”任务。有没有人尝试过做这样的事情(使用任何编程语言)?

我看到了这个例子,但是这个HTTP网关想法的基础是一个django应用程序,我不知道不想创建一个 django 应用程序来仅处理这些调用。

我考虑过创建一个 SimpleXMLRPCServer 并使用 node-xmlrpc 模块 与之连接。你怎么认为?有更好的方法吗?是否有其他应用程序或服务可以与 Node.js 原生配合使用?

提前致谢。

I heard about celery and I really like it. But now I'm writing an application with node.js and I have to manage (asynchronous) tasks and I want to use celery to this. I've installed it in my development environment and played around with some python scripts. It all works well but I want to "call" the tasks with node.js. Has anyone tried to do something like this (with any programming language)?

I saw this example, but the base of this HTTP Gateway idea is a django application and I don't want to create a django app to only handle these calls.

I thought about creating a SimpleXMLRPCServer and use the node-xmlrpc module to connect with that. What do you think? There is a better way to do this? Is there another app or service that works natively with node.js?

Thanks in advance.

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

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

发布评论

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

评论(1

情独悲 2024-11-27 00:30:03

Celery 将迫使你为一个简单的消息队列继承整个 Python 堆栈 - 对我来说似乎是一种混乱的痛苦。查看 coffee-resque 以获得简单的本机解决方案。

Celery will force you to inherit a whole Python stack for a simple message queue - seems like a messy pain to me. Check out coffee-resque for a simple and native solution.

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