Explain in detail the fault tolerance and degradation of spring cloud hystrix circuit breaker
•
Java
brief introduction
Spring cloud provides the hystrix fault-tolerant library to implement the degradation strategy for the method configured with circuit breaker and temporarily call the standby method when the service is unavailable. This article will create a product micro service and register it in the Eureka service registry. Then we use the web client to access the / products API to obtain the product list. When the product service fails, we will call the local standby method to degrade but provide the service normally.
Basic environment
Git: project source code
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码