Faktory workers in Clojure!
(require '[clj-faktory.core :as faktory])
(faktory/defjob :say-hello [first-name]
(println "Hello" first-name "!"))
(let [worker (faktory/worker "tcp://localhost:7419" {:concurrency 5})]
(faktory/perform-async worker :say-hello ["Erik"])
(faktory/start worker))
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close