摘要
Abstract
Nowadays,there are many program languages to build Web application. During developing Web application,the most of languages must handle multithreading problem. In addition,these Web application programs must be deployed in a third⁃party Web server,such as Apache,Tomcat,Nginx and so on. Recently,Node.js,an event⁃driven server⁃side JavaScript envi⁃ronment based on I/O has been widely concerned and applied. In this paper,via comparing the performance of the Web applica⁃tion built by synchronous blocking PHP and asynchronous non⁃blocking Node.js,it is found that the response time of the Web server built by Node.js is shorter than PHP and the throughput of Node.js is higher than PHP in the case of high concurrent re⁃quests. A conclusion that Node.js is superior to PHP in building fast and scalable Web application program is obtained eventually.关键词
Web服务器/异步非阻塞/事件驱动模型/Node.jsKey words
Web server/asynchronous non-blocking/event-driven model/Node.js分类
信息技术与安全科学