Skip to content

Commit

Permalink
docs: optimize README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Mar 2, 2024
1 parent 11faa69 commit 162b760
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,49 +449,3 @@ func TestUserLifecycleInMySQL(t *testing.T) {
```


## 项目总结与反思
1,已存在的问题:

(i)单测覆盖率还不够高

(ii)上传视频接口不够优雅

(iii)边界处理还可以优化

2,已识别出的优化项:

(i)数据库的缓存处理,因为在我们这个简易抖音里,增,查两种操作比较多。另外两种几乎没有涉及到。

所以我的缓存策略采用的是简化版的旁路缓存,能够保证缓存的高命中性。同时设置了mysql发生错误时回滚,保证了数据一致性

(ii)mysql数据库设置了合理的索引,能够提高查询效率

(iii)设置了消息队列对高并发的请求进行削峰处理

3,架构演进的可能性

(i)继续细分微服务架构,进一步解耦

(ii)实现敏感词屏蔽功能

(iii)k8s实现资源分隔管理,应用升级降级

(iiii)因为前端是写死的错误码只有0和非0的区别,所以就没做全局错误码,有时间可以加上

(iiiii)在性能资源足够的情况下可以使用并发地处理查询多个rpc节点,达到节约时间的效果

4,项目过程中的反思与总结

(i)事先列好整体项目架构,能够在开发的时候变得事半功倍

(ii)日志是个方便debug的好东西,特别是对于大型项目而言

(iii)运维时生产环境中最好配置例如systemctl或者k8s的service,方便进行发生报错中断之后服务重启

## 鸣谢
@[withoutabc](https://github.com/withoutabc)
@[KeiichiKasai](https://github.com/KeiichiKasai)
@[shiningstoned](https://github.com/shiningstoned)
@[Hanser001](https://github.com/Hanser001)

- [字节跳动青训营](https://youthcamp.bytedance.com/)

0 comments on commit 162b760

Please sign in to comment.