springcloud 断路器
时间: 2023-08-25 19:07:22 浏览: 93
Spring Cloud断路器是一种用于分布式系统中的故障容错机制。它可以防止由于某个服务故障而导致整个系统的崩溃。在Spring Cloud中,有两种常用的断路器实现:Feign和Hystrix。
Feign是一个声明式的Web服务客户端,它通过简单的注解和接口定义来调用HTTP API。当使用Feign进行服务调用时,可以通过添加Hystrix回退机制来实现断路器功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [springcloud记录篇4-断路器Circuit Breaker](https://blog.csdn.net/liaomin416100569/article/details/78179404)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [[SpringCould篇]之断路器(Hystrix)](https://blog.csdn.net/qq_38011415/article/details/109147720)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文