Microservices Management微服务的链路保护机制

本文探讨了微服务管理中如何应对微服务雪崩效应,提出熔断、隔离和限流三种解决方案。熔断通过服务降级避免资源耗尽,隔离将不同类型的请求分隔开,限流则限制QPS以防止过载。同时介绍了Hystrix、Sentinel和resilience4j等工具在实现这些策略中的应用。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值