熔断与降级的关系

熔断的概念:

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:d3dce814-e22b-4d52-8d7b-805cbc8fc213

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:a270745c-f4f8-4c69-9df3-4a24223cc444

降级概念:

熔断降级逻辑:A服务器调用B服务器,失败次数达到一定阈值后,A服务的断路器打开,就不再请求B服务,而是直接执行本地的fallback方法;这种方式叫熔断降级

超时降级:

同样是A服务调用B服务,B服务响应超过了A服务的设定阈值后,就会执行降级逻辑;

限流降级:

还是A服务调用B服务,服务A的连接已超过自身能承载的最大连接数,比如A能承载的连接数为5,但是目前的并发有6个请求同时进行,前5请求能正常请求,最后一个会直接拒绝,执行fallback降级逻辑;

熔断和降级的关系:

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:157eaa2b-ba63-4131-887e-9c5a17816ec4

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:bd169cb9-b09f-4d5b-a3e9-c32390be4865

Original: https://www.cnblogs.com/wylshkjj/p/16544879.html
Author: HashFlag
Title: 熔断与降级的关系

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/563591/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球