An essential read for any JavaScript developer - take full advantage of the Node.js platform and build reliable, scalable web applications using design patterns Purchase of the print or Kindle book includes a free eBook in PDF format
Key Features
Gain a deep understanding of the Node.js philosophy, its core components, and the solutions in its ecosystem Avoid common pitfalls in applying proven patterns to create robust, maintainable Node.js applications Enhance your development skills through a wealth of real-world examples and case studies
Book DescriptionNode.js underpins much of modern web development, reliably powering APIs and full-stack apps across all industries. Authors Luciano Mammino and Mario Casciaro offer a practical guide that unpacks the JavaScript runtime so you can write reliable, high-performance Node.js apps. Building on the highly rated third edition, this new edition adds fresh case studies and the latest Node.js developments: newer APIs and libraries, ESM improvements, practical security and production tips, and guidance on using Node.js with TypeScript. It also introduces a new chapter on testing that gives you a full introduction to testing philosophy and practical guidance on writing unit, integration, and end-to-end tests, giving you the confidence to write functional, stable, and reliable code. Real-world, end-to-end examples throughout the book show how to build microservices and distributed systems with Node.js, integrating production-proven technologies such as Redis, RabbitMQ, LevelDB, and ZeroMQ, the same components you’ll find in scalable deployments at companies of all sizes. End-of-chapter exercises consolidate your understanding. By the end of this Node.js book, you’ll have the design patterns, mindset, and hands-on skills every serious Node.js professional needs to confidently architect robust, efficient, and maintainable applications.
What you will learn
Understand Node.js basics and its async event-driven architecture Write correct async code using callbacks, promises, and async/await Harness Node.js streams to create data-driven processing pipelines Implement trusted software design patterns for production-grade applications Write testable code and automated tests (unit, integration, E2E) Use advanced recipes: caching, batching, async init, offload CPU-bound work Build and scale microservices and distributed systems powered by Node.js
Who this book is forThis book is for you if you’re a developer or software architect with basic knowledge of JavaScript and Node.js and want to get the most out of these technologies to maximize productivity, design quality, and scalability. It’ll help you level up from junior to senior roles. This book is a tried-and-tested reference guide for readers at all levels. Even those with more experience will find value in the more advanced patterns and techniques presented. You’re expected to have an intermediate understanding of web application development, databases, and software design principles.