Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure Heroku Worker Dyno Queue

Is it possible to have a job queue for a Clojure webapp on Heroku? I see that you can do delayed jobs and use celery for Rails and Django, is there anything similar for Clojure?

like image 282
Mantas Vidutis Avatar asked Mar 03 '12 00:03

Mantas Vidutis


2 Answers

I don't know the specifics of job queue management in Clojure, but if you can start the process from the command line you can run it on Heroku:

http://neilmiddleton.com/the-procfile-is-your-friend/

like image 200
Neil Middleton Avatar answered Dec 04 '22 08:12

Neil Middleton


IronMQ is available on Heroku, and there's a Clojure library that allows you to work with it:

https://github.com/iron-io/iron_mq_clojure

(I notice that there is a problem/feature where if you pass something other than a string as a message to the Iron MQ clojure library, it'll save an empty string. The easy work-around is to serialize everything as clojure reader forms.)

like image 21
mikebridge Avatar answered Dec 04 '22 09:12

mikebridge