Fetching latest commit…
Cannot retrieve the latest commit at this time.


Hystrix Clojure Bindings

This module contains idiomatic Clojure bindings for Hystrix.


Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Example for Maven:


and for Ivy:

<dependency org="com.netflix.hystrix" name="hystrix-clj" rev="x.y.z" />

and for Leiningen:

[com.netflix.hystrix/hystrix-clj "x.y.z"]


Please see the docstrings in src/com/netflix/hystrix/core.clj for extensive usage info.


You have a function that interacts with an untrusted dependency:

(defn make-request
  ... make the request ...)

; execute the request
(make-request "baz")

and you want to make it a Hystrix dependency command. Do this:

(defcommand make-request
  ... make the request ...)

; execute the request
(make-request "baz")

; or queue for async execution
(queue #'make-request "baz")

Event Stream

A Clojure version of hystrix-event-stream can be found at https://github.com/josephwilk/hystrix-event-stream-clj