首页> 中文期刊> 《现代电子技术》 >Node.js:一种新的Web应用构建技术

Node.js:一种新的Web应用构建技术

         

摘要

现如今,有很多种Web应用程序开发语言。在Web应用程序开发过程中,大部分语言都要解决多线程问题。而且这些Web应用程序都要部署在第三方Web服务器上,如:Apache,Tomcat,Nginx等。近期一种基于I/O事件驱动模型服务器端的JavaScript运行环境——Node.js得到了广泛的关注和应用。通过对同步阻塞语言PHP和异步非阻塞的Node.js构建的Web应用程序做一些性能上的比较,发现在高并发请求的情况下,Node.js构建的服务器比PHP构建的应用程序的响应时间短、吞吐率高。最终得出结论Node.js在构建快速、可扩展的Web应用程序方面的优势大于PHP。%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.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号