GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 添加 docs/02.PassJava架构篇/17.SpringCloud整合Alibaba-Sentinel组件.md · kpaxer/PassJava-Learning@eddc215

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/02.PassJava架构篇
    • 17.SpringCloud整合Alibaba-Sentinel组件.assets
      • image-20201023054822996.png
    • 17.SpringCloud整合Alibaba-Sentinel组件.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/02.PassJava架构篇/17.SpringCloud整合Alibaba-Sentinel组件.assets/image-20201023054822996.png‎

Copy file name to clipboard
215 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎docs/02.PassJava架构篇/17.SpringCloud整合Alibaba-Sentinel组件.md‎

Copy file name to clipboard
+26Lines changed: 26 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Spring Cloud 整合 Alibaba-Sentinel
2+
3+
## 一、简介
4+
5+
### 1.1 熔断降级限流
6+
7+
- 什么是熔断?
8+
9+
关键字:`断路保护`。比如 A 服务调用 B 服务,由于网络问题或 B 服务宕机了或 B 服务的处理时间长,导致请求的时间超长,如果在一定时间内多次出现这种情况,就可以直接将 B 断路了(A 不再请求B)。而调用 B 服务的请求直接返回降级数据,不必等待 B 服务的执行。因此 B 服务的问题,不会级联影响到 A 服务。
10+
11+
- 什么是降级?
12+
13+
关键字:`返回降级数据`。网站处于流量高峰期,服务器压力剧增,根据当前业务情况及流量,对一些服务和页面进行有策略的降级(停止服务,所有的调用直接返回降级数据)。以此缓解服务器资源的压力,保证核心业务的正常运行,保持了客户和大部分客户得到正确的响应。降级数据可以简单理解为快速返回了一个 false,前端页面告诉用户“服务器当前正忙,请稍后再试。”
14+
15+
- 什么是限流?
16+
17+
对请求的流量进行控制, 只放行部分请求,使服务能够承担不超过自己能力的流量压力。
18+
19+
- 熔断和降级的相同点?
20+
- 熔断和限流都是为了保证集群大部分服务的可用性和可靠性。防止核心服务崩溃。
21+
- 给终端用户的感受就是某个功能不可用
22+
- 熔断和降级的不同点?
23+
- 熔断是被调用放出现了故障,主动触发的操作。
24+
- 降级是基于全局考虑,停止某些正常服务,释放资源。
25+
26+
![Hystix 和 Sentinel 对比](17.SpringCloud整合Alibaba-Sentinel组件.assets/image-20201023054822996.png)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.