![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hystrix
文章平均质量分 96
Trust_FreeDom
这个作者很懒,什么都没留下…
展开
-
【SpringCloud】HystrixCommand的threadPoolKey默认值及线程池初始化
关于threadPoolKey默认值的疑问使用SpingCloud必然会用到Hystrix做熔断降级,也必然会用到@HystrixCommand注解,@HystrixCommand注解可以配置的除了常用的groupKey、commandKey、fallbackMethod等,还有一个很关键的就是threadPoolKey,就是使用Hystrix线程隔离策略时的线程池Key/** * ...原创 2018-11-14 10:05:00 · 805 阅读 · 0 评论 -
【SpringCloud】Zuul在何种情况下使用Hystrix
首先,引入spring-cloud-starter-zuul之后会间接引入:hystrix依赖已经引入,那么何种情况下使用hystrix呢?在Zuul的自动配置类ZuulServerAutoConfiguration和ZuulProxyAutoConfiguration中总共会向Spring容器注入3个Zuul的RouteFilter,分别是 SimpleHostRout...原创 2018-11-19 13:46:00 · 142 阅读 · 0 评论