Spring Cloud Hystrix使用- 基于
Spring Aop自定义服务熔断 Spring Cloud Hystrix源码分析
Spring Cloud服务熔断
版本信息
Spring Cloud : Hoxton.SR1
Spring Boot : 2.2.2.RELEASE
Spring Cloud Hystrix使用
熔断策略
THREAD— it executes on a separate thread and concurrent requests are limited by the number of threads in the thread-poolSEMAPHORE— it executes on the calling thread and concurrent requests are limited by the semaphore count
- 线程方式 超时,基于 Thread Pool + Future实现
- 信号量方式 限流,基于Semaphore实现