spring cloud microservice architecture (2): the use of cluster fault-tolerant framework Hystrix

1 What problem does Hystrix solve

Simply put, in a distributed system, if a request needs to call 10 services, if one of the 10 services has a problem with service A, the request will be blocked, so as long as the request to call service A will be blocked. block. Further, there is a problem with a service, which may cause all requests to be blocked, resulting in the unavailability of the entire distributed system. This is the "avalanche effect".

write picture description here

2 How does Hystrix solve these problems

  1. Thread Pool Isolation or Semaphore Isolation: Thread Pool Isolation

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325995687&siteId=291194637