Mastering Node.js : Build robust and scalable real-time server-side web applications efficiently, 2/e (Paperback)

Sandro Pasquali, Kevin Faaborg

  • 出版商: Packt Publishing
  • 出版日期: 2017-12-29
  • 售價: $2,150
  • 貴賓價: 9.5$2,043
  • 語言: 英文
  • 頁數: 498
  • 裝訂: Paperback
  • ISBN: 178588896X
  • ISBN-13: 9781785888960
  • 相關分類: Node.jsJVM 語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Expert techniques for building fast servers and scalable, real-time network applications with minimal effort; rewritten for Node.js 8 and Node.js 9

Key Features

  • Packed with practical examples and explanations, Mastering Node.js contains everything you need to take your applications to the next level.
  • Unleash the full potential of Node.js 9 to build real-time and scalable applications.
  • Gain in-depth knowledge of asynchronous programming, event loops, and parallel data processing.
  • Explore Node's innovative event-non-blocking design, and build professional applications with the help of detailed examples.

Book Description

Node.js, a modern development environment that enables developers to write server- and client-side code with JavaScript, thus becoming a popular choice among developers.

This book covers the features of Node that are especially helpful to developers creating highly concurrent real-time applications. It takes you on a tour of Node's innovative event non-blocking design, showing you how to build professional applications. This edition has been updated to cover the latest features of Node 9 and ES6. All code examples and demo applications have been completely rewritten using the latest techniques, introducing Promises, functional programming, async/await, and other cutting-edge patterns for writing JavaScript code. Learn how to use microservices to simplify the design and composition of distributed systems. From building serverless cloud functions to native C++ plugins, from chatbots to massively scalable SMS-driven applications, you'll be prepared for building the next generation of distributed software.

By the end of this book, you'll be building better Node applications more quickly, with less code and more power, and know how to run them at scale in production environments.

What you will learn

  • Build an Electron desktop app using Node that manages a filesystem
  • Explore Streams and understand how they apply to building networked services
  • Develop and deploy an SMS-driven customer service application
  • Use WebSockets for rapid bi-directional communication
  • Construct serverless applications with Amazon Lambda
  • Test and debug with headless browsers, CPU profiling, Mocha, Sinon, and more
  • Scale applications vertically and horizontally across multiple cores and web services

Who This Book Is For

This book is targeted at JavaScript developers who want to take an in-depth look at the latest Node.js framework to create faster, scalable, real-time backend applications. Basic JavaScript programming knowledge-and also some previous Node.js development experience-are mandatory to get the best out of this book

Table of Contents

  1. Understanding the Node Environment
  2. Understanding Asynchronous Event-Driven Programming
  3. Streaming Data across Nodes and Clients
  4. Using Node to Access the File System
  5. Managing many simultaneous client connections
  6. Creating Realtime Applications
  7. Utilizing Multiple Processes
  8. Scaling your Application
  9. Deploying Microservices
  10. Testing your Application
  11. Appendix A : Organizing Your Work into Modules
  12. Appendix B : Creating your own C++ Add-ons

商品描述(中文翻譯)

專業技巧,輕鬆建立快速伺服器和可擴展的即時網路應用程式;針對 Node.js 8 和 Node.js 9 進行重寫

主要特點



  • 充滿實用範例和解釋,Mastering Node.js 包含了您需要提升應用程式的一切。

  • 發揮 Node.js 9 的全部潛力,建立即時且可擴展的應用程式。

  • 深入了解非同步程式設計、事件迴圈和平行資料處理。

  • 探索 Node 的創新事件非阻塞設計,並透過詳細範例建立專業應用程式。


書籍描述


Node.js 是一個現代開發環境,讓開發人員能夠使用 JavaScript 撰寫伺服器端和客戶端程式碼,因此成為開發人員的熱門選擇。


本書涵蓋了對於開發高度並行的即時應用程式特別有幫助的 Node 功能。它帶您深入了解 Node 的創新事件非阻塞設計,並展示如何建立專業應用程式。本版已更新以涵蓋 Node 9 和 ES6 的最新功能。所有程式碼範例和示範應用程式都已使用最新技術完全重寫,引入了 Promises、函數式程式設計、async/await 和其他撰寫 JavaScript 程式碼的尖端模式。學習如何使用微服務簡化分散式系統的設計和組合。從建立無伺服器雲端函數到原生 C++ 插件,從聊天機器人到大規模可擴展的短訊驅動應用程式,您將準備好建立下一代分散式軟體。


閱讀本書結束時,您將能夠更快地建立更好的 Node 應用程式,使用更少的程式碼和更強大的功能,並且知道如何在生產環境中進行規模化運行。


您將學到什麼



  • 使用 Node 建立 Electron 桌面應用程式,管理檔案系統

  • 探索串流並了解其在建立網路服務中的應用

  • 開發並部署以短訊驅動的客戶服務應用程式

  • 使用 WebSockets 進行快速雙向通訊

  • 使用 Amazon Lambda 建立無伺服器應用程式

  • 使用無頭瀏覽器、CPU 分析、Mocha、Sinon 等進行測試和除錯

  • 在多個核心和網路服務之間垂直和水平擴展應用程式


本書適合對象


本書針對希望深入研究最新 Node.js 框架以建立更快、可擴展、即時後端應用程式的 JavaScript 開發人員。基本的 JavaScript 程式設計知識和一些先前的 Node.js 開發經驗是必要的,以獲得本書的最佳效果。


目錄



  1. 了解 Node 環境

  2. 了解非同步事件驅動程式設計

  3. 在節點和客戶端之間串流資料

  4. 使用 Node 存取檔案系統

  5. 管理許多同時的客戶端連線

  6. 建立即時應用程式

  7. 利用多個處理程序

  8. 擴展您的應用程式

  9. 部署微服務

  10. 測試您的應用程式

  11. 附錄 A:將工作組織成模組

  12. 附錄 B:建立自己的 C++ 插件