摘要
越来越多的人选择通过博客发布自己的日常,及时有效地与他人进行交流。传统的博客系统普遍存在平均响应时间过长、事务成功率过低、CPU使用率过高、系统极限承载太低等问题。针对这些问题,该系统采用Node.JS开发环境的Web框架Express进行开发,服务器端采用ECS云服务器,使用HTML、CSS、JavaScript、Node.JS、SQL技术编写代码。搭建框架主要有Bootstrap和Express,采用MySQL数据库存储数据,采用MVC思想构建代码块,将业务逻辑模块化整合。通过黑盒测试技术对博客系统的性能进行测试,结果表明,该系统响应时间不超过5 s,可支持至少500人同时在线并发,兼容IE8及IE8以上浏览器、Chrome浏览器、火狐浏览器、360浏览器、QQ浏览器等常用浏览器,后台功能满足目前博客基本功能需求,具有较高的用户信息安全保障,可以自由地更换前台需要展示的内容。
More and more people choose to blog their own daily,timely and effective communication with others.In traditional blog systems,the average response time is too long,the success rate of transaction is too low,the utilization rate of CPU is too high,and the limit of system load is too low.In order to solve these problems,the system adopts the Web framework Express of Node.JS development environment,the server end adopts ECS cloud server,and the code is compiled with the technology of HTML,CSS,Java Script,Node.JS,SQL.The framework includes Bootstrap and Express,which use MySQL database to store data and MVC idea to construct code block and integrate business logic modularization.The performance of the blog system is tested by black box test technology.The results show that the response time of the system is no more than 5 s,and it can support at least 500 people concurrent online at the same time.The system is compatible with IE8 browser or later,Chrome browser,Firefox browser,360 browser,QQ browser,etc.The background function of the system meets the basic functional requirements of the blog at present,and has a high security of user information,and can freely replace the content that needs to be displayed in the front desk.
作者
闵亮
薛格格
张玉欣
赵彩
MIN Liang;XUE Gege;ZHANG Yuxin;ZHAO Cai(Department of Computer Science,Xi’an Jiaotong University City College,Xi’an 710018,China)
出处
《电子设计工程》
2022年第7期37-41,共5页
Electronic Design Engineering