摘要
为了提高智慧竞赛APP重用性和扩展性,充分分析需求分析基础上,采用分层设计思想解耦模块。数据交互上采用轻量级的简单对象访问协议实现客户端与服务器之间实现异步数据交互,减轻服务器响应负载,同时也提高了客户端用户体验。数据交互设计运用观察者设计模式实现了数据响应与多个响应线程之间一对多的依赖关系,以便所有依赖于数据请求对象都能及时刷新。最后系统设计采用百度推送方式确保消息及时性。系统测试表明上述的智慧竞赛APP设计合理,性能良好。
In order to improve the reusability and scalability of the APP, we use the hierarchical design idea to decouple the module based on the analysis of the requirements. The lightweight simple object access protocol is used to implement asynchronous data interaction between client and server, which can reduce the load of server response and improve the user experience. The data interaction design uses the observer design pattern to achieve a multi dependency relationship between the data response and multiple response threads, so that all data requests can be refreshed in time. Finally, the system design adopts Baidu push mode to ensure timeliness of the information. The system test shows that the design of APP is reasonable and the performance is good.
出处
《价值工程》
2017年第6期75-76,共2页
Value Engineering
基金
浙江省教育厅科研项目资助(Y201636004)
关键词
分层
异步
观察者
stratification
asynchronous
observer