「架构实战营」模块二作业 朋友圈复杂度
一、业务背景
2019 年 1 月,根据微信官方公布数据,每天 7.8 亿人,1.2 亿人发朋友圈,其中照片 6.7 亿张,有 1 亿条视频内容。集中在 8~10 点、12~14 点、18~22 点,总共 8 个小时中发布朋友圈
每天看微信的时间是 8 小时,看朋友圈的平均 QPS 为 7.8*100000000/(8*60*60) = 211250, 高峰期访问量按平时 2 倍算,看朋友圈的 QPS 为 42 万;
发朋友圈的数量为看的 1/6,发朋友圈的 TPS 为 7 万;
点赞/评论的数量为看的 1/3,点赞/评论的 TPS 为 14 万;

二、复杂度分析
浏览


三、架构图

评论