项目作者: ivanovaolya

项目描述 :
Using Spring Cloud Netflix Hystrix – the fault tolerance library.
高级语言: Java
项目地址: git://github.com/ivanovaolya/netflix-hystrix-example.git
创建时间: 2017-10-18T14:02:28Z
项目社区:https://github.com/ivanovaolya/netflix-hystrix-example

开源协议:

下载


netflix-hystrix-example

Using Spring Cloud Netflix Hystrix – the fault tolerance library.

REST API samples

curl http://localhost:8080/greeting/Olya
Expected result: Hello Olya!

curl http://localhost:8080/service/Olya
ConnectException is thrown, and then fallbackMethod is invoked.
Expected result: Hello default user!

Monitoring

You can monitor your application here: http://localhost:8080/hystrix

Hystrix core

curl localhost:8080/hystrix/Olya
curl -H "Content-Type: application/json" -X POST -d '"key":"hystrixdemo.sleep", "value": "145"' http://localhost:8080/hystrix/config