-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
096573e
commit f2a7904
Showing
14 changed files
with
172 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
|
||
1. [docker](./1docker/0目录.md) | ||
|
||
2. [k8s](./2k8s/0目录.md) | ||
2. [k8s](./2k8s/0目录.md) | ||
|
||
3. [服务网格](./3服务网格/0目录.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## 目录 | ||
|
||
- [istio](https://github.com/istio/istio) | ||
- [官网](https://istio.io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
1. https://asciinema.org/ 命令行记录 | ||
1. https://asciinema.org/ 命令行记录 | ||
2. https://github.com/buger/goreplay 流量重放 | ||
3. https://github.com/erguotou520/electron-ssr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ | |
8. [一致性协议](./8一致性协议.md) | ||
|
||
9. [服务发现](./9服务发现.md) | ||
|
||
10. [微服务](./10微服务.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## 微服务 | ||
|
||
### 解决什么问题 | ||
1. 代码到处拷贝 | ||
2. 消除复杂性扩散(一处BUG处处修改,专注性,屏蔽底层复杂度) | ||
3. SQL质量得不到保障,业务相互影响(拒绝其他业务直接操作数据层) | ||
4. 调用方爽(像操作一个本地函数) | ||
5. 提供有限接口,无限性能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## 常见设计 | ||
|
||
1. [商品SKU设计](https://blog.csdn.net/wwwdc1012/article/details/71774280/) | ||
1. [商品SKU设计](https://blog.csdn.net/wwwdc1012/article/details/71774280/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## 概念 | ||
|
||
### 高可用 | ||
通过设计减少程序不可访问的时间 | ||
### 高并发 | ||
通过设计让程序能够在单位时间内处理更多的请求 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## 跨公网调用第三方服务 | ||
|
||
- 业务能接受旧数据:读取本地数据,异步代理定期更新数据 | ||
- 有多个第三方服务提供商:多个第三方互备(短信) | ||
- 向第三方同步数据:本地写成功就算成功,异步向第三方同步数据 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## 秒杀系统: | ||
|
||
### 思路 | ||
|
||
1. 将请求拦截在上游 | ||
2. 充分利用缓存 | ||
|
||
#### 具体方案 | ||
|
||
- 客户端层: 按钮置灰,禁止用户重复提交请求; | ||
- 客户端层:JS限制用户在x秒之内只能提交一次请求 | ||
- 站点层: 页面缓存,返回同一个页面,同一个用户限流 | ||
- 服务层: 请求队列,超量直接返回"已售完" |