架构实战营 - 模块四 - 千万级学生管理系统考试试卷存储方案
题目

2、存储架构的选择原理

3、试卷存储性能分析



4、Redis 的数据结构设计
使用 Redis Hashes, key 为 学校 ID+学期 ID+课程 ID+试卷 ID,feilds 必须包括试卷内容
:试卷内容包括考题和结果两个部分,分属不同阶段,分开存储较为合理,考题:考题说明+考题 考题结果:考题答案+考生试卷
5、读写流程

6、集群服务器的数量和性能
最大的 TPS 为请求试卷,5 万/s,单台 redis 可以支撑
redis sentinel 集群至少 3 个 sentinel 节点,3 个 redis 数据节点,redis 服务器的数量至少 6 台
redis3 个数据节点,1 主 2 从读写分离,并发读的能力约 10 万~20 万之间,性能冗余。
版权声明: 本文为 InfoQ 作者【娜酱】的原创文章。
原文链接:【http://xie.infoq.cn/article/e3ed728b6f2c156ec89d01127】。文章转载请联系作者。
评论