Skip to content

PacktPublishing/Node.js-Design-Patterns-Fourth-Edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Design Patterns, Fourth Edition

This is the code repository for Node.js Design Patterns, Fourth Edition, published by Packt.

Level up your Node.js skills and design production-grade applications using proven techniques

Luciano Mammino, Mario Casciaro

Free PDF       Graphic Bundle       Amazon      

About the book

Unity Cookbook, Fifth Edition

Node.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.

Key learnings

  • 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

Chapters

Unity Cookbook, Fifth Edition
  1. The Node.js Platform
  2. The Module System
  3. Callbacks and Events
  4. Asynchronous Control Flow Patterns with Callbacks
  5. Asynchronous Control Flow Patterns with Promises and Async/Await
  6. Coding with Streams
  7. Creational Design Patterns
  8. Structural Design Patterns
  9. Behavioral Design Patterns
  10. Testing: Patterns and Best Practices
  11. Advanced Recipes
  12. Scalability and Architectural Patterns
  13. Messaging and Integration Patterns

Requirements for this book

To experiment with the code, you will need a working installation of Node.js version 24 (or greater) and npm version 11 (or greater) or another package manager such as yarn or pnpm. If some examples will require you to use some extra tooling, these will be described accordingly in place. You will also need to be familiar with the command prompt, know how to install a package, and know how to run Node.js applications. Finally, you will need a text editor to work with the code and a modern web browser. To get the most out of this book, you can download the example code files and the color images.

Get to know authors

Luciano Mammino began his coding journey at the age of 12 on his father’s old i386, and he hasn’t stopped since. With over 15 years of experience in the soft ware industry, he now serves as a senior architect at fourTheorem (fourtheorem.com), where he empowers global clients to fully leverage AWS and serverless technologies. As an AWS Serverless Hero and Microsoft MVP, Luciano is recognized for his expertise and contributions to the tech community. An active international speaker, he has delivered over 160 talks at conferences and meetups worldwide, sharing his knowledge and passion for cutting-edge technology. You can stay in touch with Luciano and explore his many passions on his blog at loige.co.

Mario Casciaro is a soft ware architect, technology leader, and entrepreneur with a long career in building and scaling soft ware products for mission-critical industries. Throughout his career, he has held roles ranging from soft ware engineer to team leader to CTO. His passion for soft ware and technology has led him to develop multiple side projects, launch a start-up, and, of course, write the bestselling book Node.js Design Patterns. His proudest moment is seeing his soft ware being used for astronaut rescue operations.

Other related books