Node.js High Performance
暫譯: Node.js 高效能

Diogo Resende

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-22
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 136
  • 裝訂: Paperback
  • ISBN: 1785286145
  • ISBN-13: 9781785286148
  • 相關分類: Node.js
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Take your application to the next level of high performance using the extensive capabilities of Node.js


About This Book


  • Analyze, benchmark, and profile your Node.js application to find slow spots, and push it to the limit by eliminating performance bottlenecks
  • Learn the basis of performance analysis using Node.js
  • Explore the high performance capabilities of Node.js, along with best practices

In Detail


Node.js is a tool written in C, which allows you to use JavaScript on the server-side. High performance on a platform like Node.js is knowing how to take advantage of every aspect of your hardware, helping memory management act at its best, and correctly deciding how to architect a complex application. Do not panic if your applications start consuming a lot of memory; instead spot the leak and solve it fast with Node.js by monitoring and stopping it before it becomes an issue.

This book will provide you with the skills you need to analyze the performance of your application and monitor the aspects that can and should be. Starting with performance analysis concepts and their importance in helping Node.js developers eliminate performance bottlenecks, this book will take you through development patterns to avoid performance penalties. You will learn the importance of garbage collection and its behaviour,and discover how to profile your processor, allowing better performance and scalability.

You will then learn about the different types of data storage methods. Moving on, you will get to grips with testing and benchmarking applications to avoid unknown application test zones. Lastly, you will explore the limits that external components can impose in your application in the form of bottlenecks.

By following the examples in each chapter, you will discover tips to getting better performing applications by avoiding anti-patterns and stretching the limits of your environment as much as possible.


What You Will Learn


  • Develop applications using well-defined and well-tested development patterns
  • Explore memory management and garbage collection to improve performance
  • Monitor memory changes and analyze heap snapshots
  • Profile the CPU and improve your code to avoid patterns that force intensive processor usage
  • Understand the importance of data and when you should cache information.
  • Learn to to always test your code and benchmark when needed
  • Extend your application’s scope and know what other elements can influence performance

Who This Book Is For


This bookis for Node.js developers who want a more in-depth knowledge of the platform to improve the performance of their applications. Whether you have a base Node.js background or you are an expert who knows the garbage collector and wants to leverage it to make applications more robust, the examples in this book will benefit you.


Style and approach


This is a practical guide to learning high performance, which even the least experienced developer will comprehend. Small and simple examples help you test concepts yourself and easily adapt them to any application, boosting its performance and preparing it for the real-world.

商品描述(中文翻譯)

利用 Node.js 的廣泛功能將您的應用程式提升到高效能的下一個層次


關於本書


  • 分析、基準測試和剖析您的 Node.js 應用程式,以找出性能瓶頸,並通過消除性能瓶頸將其推向極限
  • 學習使用 Node.js 進行性能分析的基本知識
  • 探索 Node.js 的高效能能力及最佳實踐

詳細內容


Node.js 是一個用 C 語言編寫的工具,允許您在伺服器端使用 JavaScript。在像 Node.js 這樣的平台上實現高效能,關鍵在於如何充分利用硬體的每一個方面,幫助記憶體管理達到最佳效果,並正確決定如何架構一個複雜的應用程式。如果您的應用程式開始消耗大量記憶體,請不要驚慌;相反,應該及時發現記憶體洩漏並迅速解決,通過監控並在問題出現之前停止它。

本書將提供您分析應用程式性能所需的技能,並監控可以和應該監控的方面。從性能分析概念及其在幫助 Node.js 開發者消除性能瓶頸中的重要性開始,本書將引導您了解開發模式,以避免性能懲罰。您將學習垃圾回收的重要性及其行為,並發現如何剖析您的處理器,以實現更好的性能和可擴展性。

接下來,您將學習不同類型的數據存儲方法。然後,您將掌握測試和基準測試應用程式,以避免未知的應用程式測試區域。最後,您將探索外部組件在您的應用程式中可能造成的瓶頸限制。

通過遵循每一章的範例,您將發現避免反模式和盡可能擴展環境限制的技巧,以獲得更高效能的應用程式。


您將學到什麼


  • 使用明確且經過良好測試的開發模式開發應用程式
  • 探索記憶體管理和垃圾回收以改善性能
  • 監控記憶體變化並分析堆快照
  • 剖析 CPU 並改善您的代碼,以避免強迫處理器高強度使用的模式
  • 理解數據的重要性以及何時應該快取信息
  • 學會在需要時始終測試您的代碼和進行基準測試
  • 擴展您的應用程式範圍,了解其他元素如何影響性能

本書適合誰


本書適合希望深入了解 Node.js 平台以改善其應用程式性能的 Node.js 開發者。無論您是具備基本 Node.js 背景的開發者,還是了解垃圾回收器並希望利用它使應用程式更穩健的專家,本書中的範例都將對您有所幫助。


風格與方法


這是一本學習高效能的實用指南,即使是最缺乏經驗的開發者也能理解。小而簡單的範例幫助您自己測試概念,並輕鬆將其適應於任何應用程式,提升其性能並為實際應用做好準備。