Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is It Possible To Use Celery With Another Programming Language?

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.

like image 210
Jonatas Oliveira Avatar asked Jul 14 '11 20:07

Jonatas Oliveira


People also ask

Can you mix programming languages?

It's quite common to mix and match programming languages to play on each one's respective strengths. E.g., for a web application, I might be using PHP, JavaScript/jQuery, and SQL all on the same page.

What language will replace Python?

Having evolved into a go-to programming language, Rust has seen an increase in its adoption. Although Python holds a firm place in the machine learning and data science community, Rust is likely to be used in the future as a more efficient backend for Python libraries. Rust has huge potential to replace Python.


1 Answers

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.

like image 124
jharlap Avatar answered Oct 21 '22 21:10

jharlap