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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |