Node.js High Performance

Diogo Resende

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-22
  • 售價: $1,410
  • 貴賓價: 9.5$1,340
  • 語言: 英文
  • 頁數: 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 監控並及時解決記憶體洩漏問題,以免變成問題。

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

接下來,您將了解不同類型的資料儲存方法。然後,您將掌握測試和基準測試應用程式的技巧,以避免未知的應用程式測試區域。最後,您將探索外部元件在應用程式中可能產生的瓶頸限制。

通過遵循每個章節中的示例,您將發現一些技巧,以避免反模式並最大限度地發揮您的環境潛力,從而獲得更好的應用程式效能。

您將學到什麼
- 使用明確定義和經過良好測試的開發模式開發應用程式。
- 探索記憶體管理和垃圾回收以提高效能。
- 監控記憶體變化並分析堆快照。
- 剖析 CPU 並改進程式碼,避免強制使用高效能處理器的模式。
- 了解資料的重要性以及何時應該快取資訊。
- 學習始終測試程式碼並在需要時進行基準測試。
- 擴展應用程式範圍,了解其他元素如何影響效能。

本書適合對 Node.js 有基礎知識並希望深入了解該平台以提升應用程式效能的開發人員。無論您是具有基本 Node.js 背景還是熟悉垃圾回收器並希望利用它使應用程式更加強大的專家,本書的示例都將對您有所裨益。

風格和方法
這是一本實用指南,即使是最不熟練的開發人員也能理解。小而簡單的示例幫助您自行測試概念,並輕鬆將其適應到任何應用程式中,提升其效能並為實際應用做好準備。