Hystrix源码解析

时间:2020-12-30 05:54:41

1. Hystrix源码解析

1.1. @HystrixCommand原理

Hystrix源码解析

  1. 直接通过Aspect切面来做的

1.2. feign hystrix原理

Hystrix源码解析

  1. 它的本质原理就是对HystrixCommand的动态代理封装

1.2.1. 如何启动Feign hystrix的?

Hystrix源码解析

  1. 在openFeign里,已经封装了Hystrix,当feign.hystrix.enabledtrue时生效

Github地址:https://github.com/tzxylao/learn-demo