架构实战训练营 - 模块二作业
一、TPS 以及 QPS 预测
1 月 19 日、2021 微信公开课 PRO 微信之夜 张小龙
每天有 10.9 亿用户打开微信
3.3 亿用户进行了视频通话
有 7.8 亿用户进入朋友圈
1.2 亿用户发表朋友圈,其中:
--照片 6.7 亿张
--短视频 1 亿条
有 3.6 亿用户读公众号文章
4 亿用户使用小程序
据此进行 TPS 以及 QPS 推测如下:

二、复杂度分析及架构设计
发朋友圈分析:

发朋友圈架构设计:

点赞 &评论的分析与架构设计发朋友圈相同,将点赞 &评论放到对应朋友圈记录的 MongoDB 文档中
读朋友圈分析:

读朋友圈架构:

三、最终架构设计:

评论