Book description
Get the best out of Node.js by mastering a series of patterns and techniques to create modular, scalable, and efficient applications
In Detail
Node.js is a massively popular software platform that lets you use JavaScript to easily create scalable server-side applications. It allows you to create efficient code, enabling a more sustainable way of writing software made of only one language across the full stack, along with extreme levels of reusability, pragmatism, simplicity, and collaboration. Node.js is revolutionizing the web and the way people and companies create their software.
In this book, we will take you on a journey across various ideas and components, and the challenges you would commonly encounter while designing and developing software using the Node.js platform. You will also discover the "Node.js way" of dealing with design and coding decisions.
The book kicks off by exploring the fundamental principles and components that define the platform. It then shows you how to master asynchronous programming and how to design elegant and reusable components using well-known patterns and techniques. The book rounds off by teaching you the various approaches to scale, distribute, and integrate your Node.js application.
What You Will Learn
- Design and implement a series of server-side JavaScript patterns so you understand why and when to apply them in different use case scenarios
- Understand the fundamental Node.js components and use them to their full potential
- Untangle your modules by organizing and connecting them coherently
- Reuse well-known solutions to circumvent common design and coding issues
- Deal with asynchronous code with comfort and ease
- Identify and prevent common problems, programming errors, and anti-patterns
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Table of contents
-
Node.js Design Patterns
- Table of Contents
- Node.js Design Patterns
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Node.js Design Fundamentals
- 2. Asynchronous Control Flow Patterns
-
3. Coding with Streams
- Discovering the importance of streams
- Getting started with streams
- Asynchronous control flow with streams
- Piping patterns
- Summary
- 4. Design Patterns
- 5. Wiring Modules
-
6. Recipes
- Requiring asynchronously initialized modules
- Asynchronous batching and caching
- Running CPU-bound tasks
- Sharing code with the browser
- Summary
-
7. Scalability and Architectural Patterns
- An introduction to application scaling
- Cloning and load balancing
- Decomposing complex applications
- Summary
-
8. Messaging and Integration Patterns
- Fundamentals of a messaging system
- Publish/subscribe pattern
- Pipelines and task distribution patterns
- Request/reply patterns
- Summary
- Index
Product information
- Title: Node.js Design Patterns
- Author(s):
- Release date: December 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783287314
You might also like
video
Node.js Design Patterns
When writing Node.js applications, it’s absolutely imperative that we employ battle-tested guidelines that can help us …
book
Node.js Design Patterns - Second Edition
Get the best out of Node.js by mastering its most powerful components and patterns to create …
book
Node.js Design Patterns - Third Edition
Learn proven patterns, techniques, and tricks to take full advantage of the Node.js platform. Master well-known …
book
Node.js Web Development
Build scalable web applications using Node.js, Express.js, and the latest ECMAScript techniques, along with deploying applications …