响水凹

欢迎来到 Guang-Wen Duan (Dennis Duan) 的个人 Wiki

用户工具

站点工具


computer:node:node

Node.js

Node.js是一个服务器端的JavaScript运行环境,采用事件驱动和非阻塞I/O模式,以应对高并发的网络应用。下面是官方的自我介绍:

  • Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

与传统的多进(线)程、同步I/O的服务器设计方法不同,Node.js走了一条截然相反的道路,同样获得了成功,这或许是个很好的启示。

相应的,问题随之而来:我们需要摆脱固有的同步思维模式,不时提醒自己要“异步”的去思考。

文档

computer/node/node.txt · 最后更改: 2014/11/01 02:02 由 127.0.0.1