Learning Blog

預定調和

Nodejs Tip

| Comments

整理一些nodejs心得和技巧。

  1. 生產環境使用pm2。
  2. 使用 node-inspector 測試。
  3. Async 和 Q 處理非同步的問題。 4 cluster 模組利用到多核心cpu的效能。
  4. 使用node-supervisor或是 nodemon線上更新程式碼。
  5. NodeFly 測量程式效能。
  6. return 和 callback的使用。

Comments