Expert techniques for building fast servers and scalable, real-time network applications with minimal effort; rewritten for Node.js 8 and Node.js 9
About This BookPacked 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.Who This Book Is ForThis 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
What You Will LearnBuild an Electron desktop app using Node that manages a filesystem Explore Streams and understand how they apply to building networked servicesDevelop and deploy an SMS-driven customer service applicationUse WebSockets for rapid bi-directional communicationConstruct serverless applications with Amazon LambdaTest and debug with headless browsers, CPU profiling, Mocha, Sinon, and moreScale applications vertically and horizontally across multiple cores and web servicesIn DetailNode.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.
Style and approachMastering Node.js contains all of the examples and explanations you'll need to build applications in a short amount of time and at a low cost, running rapidly and at scale.