[後端] 構建高性能和可擴展性 Node.js 應用的最佳實踐

[譯] 構建高性能和可擴展性 Node.js 應用的最佳實踐

第 1 章 : 水準擴展 Node.js 應用程式
https://juejin.im/post/5bc0f68af265da0abe2720bf

1.同一台機器上的多個進程
2.本機群集模式
3.PM2 群集模式
4.多伺服器網路負載均衡

第 2 章 : 如何使您的 Node.js 應用程式安全擴展
https://juejin.im/post/5bca9208f265da0ade1ceffb

1.從 DB 中分離應用程式實例
2.無狀態
3.使用 JWT 進行無狀態身份驗證
4.存儲在 S3 上
5.正確配置 WebSockets

第 3 章 : 關於 Node.js 應用運行效率和性能的優秀實踐
https://juejin.im/post/5bcf14cee51d451cb039d13d

1.Web 和 Worker 進程
2.Kue: Web 和 Worker相互通信
3.Cron: 定期執行任務
4.Leader 選舉和 cron-cluster
5.緩存 API 調用


#Node.js, 性能, 擴展, JWT, Web, Worker, Kue通信, Cron排程, API緩存

留言