Skip to content

01 Node.js 介绍

什么是 Node.js

  1. Javascript on the machine — JavaScript 跑在机器端(服务端),不只是浏览器
  2. A runtime for Google Chrome's V8 Javascript engine — 跑在谷歌 V8 引擎上的运行时

Node.js 的用途

  1. 构建工具 — gulp、webpack 都要依赖 Node.js(Build Tools and Utilities)
  2. Web 应用 / Web 服务端 — Web Applications / Web Services

Node.js 擅长做什么

  1. 轻量级到大型应用 — Lightweight Applications all the way up to very large
  2. 高并发性 — High Concurrency
  3. 异步非阻塞 — Asyncronous Actions/Requests/non-blocking
  4. 实时通信 — Realtime Communication
  5. 同构应用 — Isomorphic Applications,服务端和客户端共享代码