架构师训练营第 1 周作业
1 设计概述
食堂就餐卡系统是一款公司内部就餐管理系统,是公司为有效管理食堂部门的核心系统,承担着公司1000位员工就餐业务的任务。
1.1 功能概述
系统中每个消费者都有一张卡,在管理中心注册缴费,卡内记着消费者的身份、余额。
使用时将卡插入收款机则显示卡上金额,服务员按收款机上数字键,收款机自动计算并显示消费额及余额。
管理中心的管理员监视每一笔消费,可打印出消费情况的相关统计数据
1.2 非功能约束
查询性能目标:平均响应时间<300ms,95%响应时间<500ms,单机TPS>100;
扣款性能目标:平均响应时间<800ms,95%响应时间<1000ms,单机TPS>30;
统计数据性能目标:平均响应时间<800ms,95%响应时间<1000ms,单机TPS>30;
核心功能可用性目标:>99.97%;
2 系统用例图



3 部署图

3 组件图

4 组件时序图


评论