期刊文献+

基于Docker容器的快速开发网页服务器 被引量:7

Rapid Development of Web Server Based on Docker Container
下载PDF
导出
摘要 C/S模式是早期的开发网页服务器架构,它使用复杂、成本高并且缺少通用性. B/S模式通过将系统功能集中到服务器中弥补了使用复杂成本高的缺点,但是没有对用户端的环境和数据传输率进行深入测试和研究,使得过多的外部用户访问网页,给服务器带来压力.针对传统C/S模式和B/S模式的局限性,引入Docker容器化开发思路,分别融合Nginx和Flask方法,构建DoNginx模式与DoFlask模式,通过修改和建立镜像实现网页服务器的开发.这两种模式综合了Docker的轻量级、Nginx的低消耗、Flask的稳定性的优势,实现了模式的优化.设计CPU、完整性、吞吐量性能测试实验,与传统B/S模式进行深度分析对比.实验表明, DoNginx模式资源利用率高,DoFlask模式环境兼容性和可靠性更强,且均优于传统B/S模式,具有很好的框架设计贡献和实验性能. 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.
作者 谢兆贤 曹香美 王超 HSIEH Chao-Hsien;CAO Xiang-Mei;WANG Chao(School of Cyber Science and Engineering,Qufu Normal University,Qufu 273100,China)
出处 《计算机系统应用》 2022年第4期99-109,共11页 Computer Systems & Applications
基金 山东省自然科学基金面上项目(ZR2020MF048)。
关键词 DOCKER FLASK NGINX 网页服务器 镜像 微服务框架 负载均衡 Docker Flask Nginx Web server image microservices framework load balancing
  • 相关文献

参考文献2

二级参考文献4

共引文献16

同被引文献40

引证文献7

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部