39

Spring Cloud入门教程-Hystrix断路器实现容错和降级-zxuqian的博客

 6 years ago
source link: http://blog.51cto.com/13727459/2112841
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
简介Springcloud提供了Hystrix容错库用以在服务不可用时,对配置了断路器的方法实行降级策略,临时调用备用方法。这篇文章将创建一个产品微服务,注册到eureka服务注册中心,然后我们使用web客户端访问/productsAPI来获取产品列表,当产品服务故障时,则调用本地备用方法,以降级但正常提供服务。基础环境JDK1.8Maven3.3.9IntelliJ2018.1Git项目源码Gi

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK