greatwqs / spring-cloud-hystrix-intro

spring cloud hystrix intro

Home Page:https://github.com/greatwqs/spring-cloud-hystrix-intro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hystrix 演示

@HystrixCommand(fallbackMethod = "callStudentService_Fallback",
   commandProperties = {
      @HystrixProperty(name = "circuitBreaker.forceClosed", value = "true"),
      @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "4000")
   },
   threadPoolKey = "studentServiceThreadPool",
   threadPoolProperties = {
      @HystrixProperty(name = "coreSize", value = "5"),
      @HystrixProperty(name = "maxQueueSize", value = "5")
   })

dashbord

http://localhost:8088/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A8088%2Fhystrix.stream

About

spring cloud hystrix intro

https://github.com/greatwqs/spring-cloud-hystrix-intro

License:Apache License 2.0


Languages

Language:Java 100.0%