Microservices Management
What is a microservice avalanche
the failure of a single component can lead to a crash of the entire system.
The avalanche effect Solutions
(1) fusing mode:
This mode is mainly blown reference circuit, if a line voltage is too high, blown fuses and prevent fires. Into our system, if a target service invocation slow or there is a lot of time expires, blown to call the service, the request for a subsequent call, do not continue to call the target service, direct return, quick release resources. If the goal is to restore the situation improved service calls.****The use of time-out mechanism, service degradation****The so-called service degradation is this: when calling an interface service, if an error occurs or a time-out, do not let it calls this interface, but call the local fallback,fallback method can return a fixed value.
What is service degradation
All RPC technology which service degradation is one of the most important topic, so-called demotion refers to the time when the service provider is not available, the program will not be an exception, and the local operation will call fallback
=>circuit breaker
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
(2) Isolation mode:
This mode of the system as requested by the same type into one island, when the island is a fire, the less light will not affect the other islands. For example, may be used for different types of requests to the thread pool resource isolation, independently of each other for each type of request, if one