-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
39 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
> 高并发场景解决方案 | ||
- 超单问题 | ||
- [电商系统常见问题](https://blog.csdn.net/m0_67788957/article/details/123552722) | ||
|
||
- 重复下单问题 | ||
- 集群环境下复现 | ||
- 组合唯一索引 | ||
|
||
- 库存超发问题 | ||
- [根据入参生成hash签名](https://blog.csdn.net/qq_25646191/article/details/78863110) `前端生成/放redis, 3秒失效` `装饰器, 降低耦合` | ||
- 库存超卖问题 | ||
- 锁:乐观**锁**、悲观锁、队列、redis锁 | ||
|
||
- **死锁**问题 | ||
- 线程锁: | ||
- mysql锁:事务间相互持有对方资源,相互等待 | ||
- 死锁的产生 | ||
- 死锁的定位 | ||
- 死锁的解决方案 | ||
|
||
- 连接池问题:如 *Service Unavailable* | ||
- 网关限流:减少问题发生概率 | ||
- **队列**,削峰填谷 | ||
- 慢SQL | ||
- 加大连接池 | ||
- try 事务 catch 释放 | ||
|
||
- 内存溢出问题 | ||
- try 新建内存中文件 catch 释放 | ||
|
||
- 硬件资源问题 | ||
- 查看CPU和内存使用率 | ||
- 加集群节点、机器配置 |
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,9 @@ | ||
- [zxing 生成二维码图片](https://www.cnblogs.com/Reborn-yuan/p/10409693.html) | ||
- [生成PDF](https://zhuanlan.zhihu.com/p/378852796) | ||
|
||
```markdown | ||
> 最终方案:前端生成图片,转给后端生成pdf文件。 | ||
1. 后端生成html, 再用html生成pdf。(html生成pdf存在失真问题) | ||
2. 前端直接生成pdf文件。(存在兼容性问题) | ||
``` | ||
|
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,22 @@ | ||
# 代码编辑 | ||
|
||
- vscode | ||
- Idea | ||
|
||
# 接口管理 | ||
|
||
- [Apifox: API文档、调试、Mock、测试](https://www.apifox.cn/) `若全栈直接用页面测最效率` | ||
- [ApiHub: 开放 API 共享平台](https://www.apifox.cn/apihub/) `快速跑通第三方接口` `微信 API` `Jira API` `Github API` `快递100 API` ... | ||
|
||
|
||
|
||
# 数据库管理 | ||
|
||
|
||
|
||
|
||
|
||
# 命令行工具 | ||
|
||
- oh-my-zsh | ||
|