本文已被:浏览 724次 下载 1762次
Received:June 22, 2021 Revised:July 14, 2021
Received:June 22, 2021 Revised:July 14, 2021
中文摘要: C/S模式是早期的开发网页服务器架构, 它使用复杂、成本高并且缺少通用性. B/S模式通过将系统功能集中到服务器中弥补了使用复杂成本高的缺点, 但是没有对用户端的环境和数据传输率进行深入测试和研究, 使得过多的外部用户访问网页, 给服务器带来压力. 针对传统C/S模式和B/S模式的局限性, 引入Docker容器化开发思路, 分别融合Nginx和Flask方法, 构建DoNginx模式与DoFlask模式, 通过修改和建立镜像实现网页服务器的开发. 这两种模式综合了Docker的轻量级、Nginx的低消耗、Flask的稳定性的优势, 实现了模式的优化. 设计CPU、完整性、吞吐量性能测试实验, 与传统B/S模式进行深度分析对比. 实验表明, DoNginx模式资源利用率高, DoFlask模式环境兼容性和可靠性更强, 且均优于传统B/S模式, 具有很好的框架设计贡献和实验性能.
Abstract:The C/S mode is an early architecture for developing Web servers, which is complex, costly, and lacking in generality. The B/S mode makes up for the disadvantages of complex use and high cost by concentrating system functions in the server, but it does not conduct in-depth testing and research on the environment and data transmission rate of the user end, which brings too many external visits to the Web page and puts pressure on the server. Given the limitations of the traditional C/S mode and B/S mode, this study introduces the idea of Docker container development and integrates it with Nginx and Flask methods respectively to construct the DoNginx mode and the DoFlask mode, which develop the Web server by modifying and establishing mirror images. The two modes combine the advantages of Docker’s lightweight, Nginx’s low consumption, and Flask’s stability to realize mode optimization. The CPU, integrity, and throughput performance tests are designed to make a comprehensive comparison with traditional B/S mode. Experiments show that the DoNginx mode has a high resource utilization rate, and the DoFlask mode has stronger environmental compatibility and reliability. Both modes are superior to the traditional B/S mode in the above aspects, boasting great contributions to the framework design and good experimental performance.
文章编号: 中图分类号: 文献标志码:
基金项目:山东省自然科学基金面上项目(ZR2020MF048)
引用文本:
谢兆贤,曹香美,王超.基于Docker容器的快速开发网页服务器.计算机系统应用,2022,31(4):99-109
HSIEH Chao-Hsien,CAO Xiang-Mei,WANG Chao.Rapid Development of Web Server Based on Docker Container.COMPUTER SYSTEMS APPLICATIONS,2022,31(4):99-109
谢兆贤,曹香美,王超.基于Docker容器的快速开发网页服务器.计算机系统应用,2022,31(4):99-109
HSIEH Chao-Hsien,CAO Xiang-Mei,WANG Chao.Rapid Development of Web Server Based on Docker Container.COMPUTER SYSTEMS APPLICATIONS,2022,31(4):99-109