介绍

hystrix由Nexflix开源,由SpringCloud集成纳入生态

背景

基础服务的故障容易导致级联故障,进而引起雪崩
SpringCloud Hystrix

工作原理

SpringCloud Hystrix

  1. 为请求构造command
  2. 执行command
  3. 检查缓存中是否有对应的response
  4. 检查断路器状态
  5. 检查线程池或者信号量是否已满
  6. 下游服务调用
  7. 断路器状态计算
  8. fallback处理
  9. 返回response

特性

  • 断路器
  • fallback
  • 资源隔离

使用

demo已经上传到gitee

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2021-05-10
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
猜你喜欢
  • 2021-07-11
  • 2021-06-20
  • 2022-12-23
  • 2021-08-25
  • 2021-06-14
相关资源
相似解决方案