Setup a Hystrix (https://github.com/Netflix/Hystrix) event stream with jetty for clojure.
Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src/ring_jetty_hystrix_adapter
test/ring_jetty_hystrix_adapter
.gitignore
LICENSE
README.md
project.clj

README.md

ring-jetty-hystrix-adapter

Setup a Hystrix (https://github.com/Netflix/Hystrix) event stream with jetty 9 for clojure.

Usage

Leiningen

[ring-jetty-hystrix-adapter "0.2.3"]

Run a jetty server:

(require '[ring-jetty-hystrix-adapter.core :as jetty])

(jetty/run-jetty-with-hystrix {:port 3000
                               :max-threads 10
                               :hystrix-servlet-path "/hystrix.stream"
                               :join? false})

Just like ring-jetty-adpater but has a new option hystrix-servlet-path to export hystrix event stream. Please see hystrix-event-stream-clj.

And we add some new options:

:connector-stats?     - Whether to add a jetty connector statistics.
:handler-stats?       - Whether to add a jetty request handler statistics.
:accept-queue-size    - The size of the pending connection backlog.
(jetty/run-jetty-with-hystrix {:port 3000
                               :max-threads 10
                               :hystrix-servlet-path "/hystrix.stream"
                               :connector-stats? true
                               :handler-stats? true
                               :join? false})

License

Copyright © 2015 killme2008

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.