https://github.com/knutwalker/hystrix-play
Playground for using Hystrix together with the playframework
https://github.com/knutwalker/hystrix-play
Last synced: 12 months ago
JSON representation
Playground for using Hystrix together with the playframework
- Host: GitHub
- URL: https://github.com/knutwalker/hystrix-play
- Owner: knutwalker
- License: apache-2.0
- Created: 2014-05-12T11:23:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T16:13:13.000Z (over 9 years ago)
- Last Synced: 2025-06-21T14:43:11.662Z (12 months ago)
- Language: Scala
- Size: 49.8 KB
- Stars: 22
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hystrix-play
============
Playground for using [Hystrix](https://github.com/Netflix/Hystrix#readme) together with the playframework
## Using Hystrix Commands with Plays asynchronous actions
There is an implicit method `future` available on any `HystrixCommand`, that will return a [Scala Future](http://www.scala-lang.org/api/current/#scala.concurrent.Future) rather then what Java calls a Future.
This is implemented by [`HystrixCommandWithScalaFuture`](app/util/Futures.scala#L13)
You can see it in Action in the [Application controller](app/controllers/Application.scala#L16).
## Providing a metrics stream, consumable by the hystrix-dashboard
This is a replacement for the [`hystrix-metrics-event-stream`](https://github.com/Netflix/Hystrix/tree/master/hystrix-contrib/hystrix-metrics-event-stream) module.
This module is only available as a Servlet/WAR, which is not suitable for Play.
There is a [`HystrixSupport` Controller](app/controllers/HystrixSupport.scala), that does the same as the original Servlet
and allows for this play application to be monitored by the [Hystrix Dashboard](https://github.com/Netflix/Hystrix/wiki/Dashboard)