Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Limited time deal NO_OF_HOURS hours NO_OF_MINUTES minutes Limited time deal NO_OF_MINUTES minutes Limited time deal NO_OF_MINUTES minutes NO_OF_SECONDS seconds Limited time deal NO_OF_SECONDS seconds Limited time deal
$44.99 with 18 percent savings
List Price: $54.99 Image
31% was claimed
FREE delivery Saturday, February 7
Or Prime members get FREE delivery Wednesday, February 4. Order within 12 hrs 6 mins.
In Stock
$$44.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$44.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

An Overview of Node.js Design PatternsPackt Publishing
  • VIDEO

Follow the authors

Get new release updates & improved recommendations
See all
Something went wrong. Please try your request again later.

Node.js Design Patterns: Level up your Node.js skills and design production-grade applications using proven techniques 4th ed. Edition

4.9 out of 5 stars (22)

{"desktop_buybox_group_1":[{"displayPrice":"$44.99","priceAmount":44.99,"currencySymbol":"$","integerValue":"44","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"Azuy33k2jGFrkgJRoF4ZVb5RH0SVWPaw49cwcSgnVd3SoOpeVx5%2F9zwRLqSVsRw3LZnjyi0RNxUrXFezhawO6Njp64L3rGWBmyT7KucDXk%2B%2FVb2IyhI8%2BxINXkIlJJsZIiEduSSBlkJynsYheet6ig%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}]}

Purchase options and add-ons

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 Description

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.

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 for

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

Table of Contents

  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

Frequently bought together

This item: Node.js Design Patterns: Level up your Node.js skills and design production-grade applications using proven techniques
$44.99
Get it as soon as Saturday, Feb 7
In Stock
Ships from and sold by Amazon.com.
+
$41.33
Get it as soon as Saturday, Feb 7
In Stock
Ships from and sold by Amazon.com.
+
$34.30
Get it as soon as Saturday, Feb 7
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

1
2
3
4

Editorial Reviews

Review

“It is the clearest path I’ve seen to production-grade Node.js. Luciano and Mario combine pragmatic wisdom with real-world examples, showing not just how to use patterns, but when to avoid them. With updates on TypeScript, Web Streams, and testing, this edition is a must-have for anyone serious about building scalable Node.js apps.”

Guilherme Dalla Rosa, CTO & Co-Founder of MerCloud, AWS Community Builder



“If you’re a Node.js developer, you probably already know Node.js Design Patterns. More than just a book, it’s a complete guide that will make you a better developer.”

Alfonso Graziano, Tech Lead at Nearform

About the Author

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 software industry, he now serves as a senior architect at fourTheorem , 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.

Mario Casciaro is a software architect, technology leader, and entrepreneur with a long career in building and scaling software products for mission-critical industries. Throughout his career, he has held roles ranging from software engineer to team leader to CTO. His passion for software 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 software being used for astronaut rescue operations.

Product details

  • Publisher ‏ : ‎ Packt Publishing
  • Publication date ‏ : ‎ September 25, 2025
  • Edition ‏ : ‎ 4th ed.
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 732 pages
  • ISBN-10 ‏ : ‎ 1803238941
  • ISBN-13 ‏ : ‎ 978-1803238944
  • Item Weight ‏ : ‎ 2.72 pounds
  • Dimensions ‏ : ‎ 7.5 x 1.65 x 9.25 inches
  • Best Sellers Rank: #164,918 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.9 out of 5 stars (22)

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.9 out of 5 stars
22 global ratings
Best book to level up Node.JS skills! ✨👍🏻
5 out of 5 stars
Best book to level up Node.JS skills! ✨👍🏻
10/10 book for developers that look to level up their Node.JS skills! 👍🏻✨ hands down one of the most descriptive and easy to follow books for coding.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on October 12, 2025
    Format: PaperbackVerified Purchase
    This latest edition, building on the highly-rated foundational work by Luciano Mammino and Mario Casciaro, solidifies its position as an essential reference for writing robust, efficient, and maintainable Node.js applications. Targeted at developers and architects with basic Node.js knowledge who are eager to level up their skills, this book delivers a deep, practical dive into the JavaScript runtime's architecture and advanced capabilities.

    The primary goal of the book is to transition the reader from functional coder to professional architect. It achieves this by meticulously covering the core building blocks of reliable Node.js systems. Starting with The Node.js Platform and foundational concepts like Callbacks and Events, the book quickly progresses into advanced asynchronous control flow patterns, providing clarity on when and how to leverage Promises, async/await, and the power of Coding with Streams for data-driven processing pipelines.

    New Content for the Modern Era
    This updated edition is particularly valuable for its inclusion of the latest Node.js developments. It comprehensively addresses newer APIs, ESM improvements, and provides essential, practical guidance on security, production best practices, and the integration of Node.js with TypeScript.

    A standout addition is the new chapter on Testing. This chapter is not just a how-to guide but a full introduction to testing philosophy, offering practical steps for writing automated unit, integration, and end-to-end tests. This focus gives readers the critical confidence needed to build truly stable and functional production code.

    Architectural Focus and Scalability
    Where the book truly shines is in its comprehensive coverage of design, scalability, and integration. Chapters dedicated to Creational, Structural, and Behavioral Design Patterns equip the reader with trusted software design principles essential for production-grade applications. Furthermore, the inclusion of real-world, end-to-end examples demonstrates how to build microservices and distributed systems, integrating proven technologies like Redis, RabbitMQ, and ZeroMQ. This focus on "Scalability and Architectural Patterns" ensures that the reader gains the mindset and hands-on skills required to confidently architect solutions used in scalable deployments across modern enterprises.
  • Reviewed in the United States on October 7, 2025
    Format: PaperbackVerified Purchase
    There is nothing more reassuring about picking a technology piece than getting both - the constant timely software updates and the technical literature around it!
    Node.js is arguably the go-to solution to run server-side JavaScript and is being solidly supported by the user community.
    The technical literature is evolving at as a fast pace whereas Node.js Design Patterns is equally my go to and seemingly most comprehensive manual, yes I call it a manual, for anything and everything Node.js apps development.
    The authors are the fourth edition so as one would expect it is a solid and mature edition of the book.
    In this edition, as in the previous, the material is covered in great depth. I especially liked how the most challenging parts as Async/Await, Promises, ES modules, streams and the entire topic of microservices are covered - just super nicely.
    The code examples are very practical, just copy them off a Github, paste - run and you see it in action!
    I found that this book works well as a reference or you can carve out of a learning path for yourself.
    A few personal notes in terms of improvements: at times it seems that I do not learn much theory.
    More time could be dedicated to performance tuning, though a section on running CPU-bound tasks was very welcome.
    In closing, my opinion is that this book is catering to intermediate developers with an aim to take them to the expert, or at least, the advanced level. Well done!
  • Reviewed in the United States on October 12, 2025
    Format: PaperbackVerified Purchase
    10/10 book for developers that look to level up their Node.JS skills! 👍🏻✨ hands down one of the most descriptive and easy to follow books for coding.
    Customer image
    5.0 out of 5 stars
    Best book to level up Node.JS skills! ✨👍🏻

    Reviewed in the United States on October 12, 2025
    10/10 book for developers that look to level up their Node.JS skills! 👍🏻✨ hands down one of the most descriptive and easy to follow books for coding.
    Images in this review
    Customer image Customer image
    One person found this helpful
    Report
  • Reviewed in the United States on October 2, 2025
    Format: Paperback
    📖 Book Review: Node.js Design Patterns by Authors: Mario Casciaro, 🦁 Luciano Mammino

    This book is a cornerstone for anyone serious about mastering Node.js beyond the basics. It doesn’t just teach coding; it instills design thinking. The authors walk you through the internals of Node.js, its asynchronous nature, and how design patterns can be applied effectively in the Node.js ecosystem.

    What makes the book stand out is its balance between theory and hands-on examples. It respects Node.js’s minimalist philosophy but also dives deep into advanced topics like streams, asynchronous flows, and traditional software engineering patterns adapted for JavaScript.

    It is not only about learning Node.js syntax—it’s about writing scalable, maintainable, and elegant Node.js applications.

    ✅ What the Book Covers

    Chapter 1 – The Node.js Platform

    Explains the foundations of Node.js: V8, libuv, bindings, and the core JS library.

    Introduces the Reactor pattern, the backbone of asynchronous event handling.

    Encourages writing small, simple modules (the “Node way”).

    Touches on TypeScript support while focusing on Node.js fundamentals.

    Chapter 2 – The Module System

    Covers CommonJS vs ES modules: imports, exports, and interoperability.

    Circular dependencies, module resolution, and monkey patching issues.

    Using JSON in modules and how to set up TypeScript configs effectively.

    Chapter 3 – Callbacks and Events

    Introduces callbacks and EventEmitter, the two pillars of async programming in Node.js.

    Shows common pitfalls and patterns.

    Explains why many APIs are evolving toward Promises and async/await.

    Chapter 4 – Asynchronous Control Flow with Callbacks

    Techniques to manage complex async flows with callbacks.

    Chapter 5 – Asynchronous Control Flow with Promises and Async/Await

    Demonstrates how Promises and async/await simplify async logic.

    Chapter 6 – Coding with Streams

    Deep dive into streams: readable, writable, duplex, and transform.

    Chapter 7 – Creational Design Patterns

    Classic OOP patterns adapted to Node.js: Factory, Singleton, Builder, and Revealing Constructor.

    Chapter 8 – Structural Design Patterns

    Covers Proxy, Decorator, and Adapter patterns.

    Chapter 9 – Behavioral Design Patterns

    Discusses Strategy, State, Template, Iterator, Middleware, and Command patterns.

    🎯 Why This Book is Valuable

    Bridges theory (patterns) and practice (Node.js ecosystem).

    Teaches how to think in Node.js, not just how to code.

    Great for developers moving from beginner to senior-level Node.js design.

    Patterns and practices apply equally to JavaScript and TypeScript projects.

    🙌 A big thank you to the authors 🦁 Luciano Mammino and Mario Casciaro. for putting together such a comprehensive and insightful resource.

    And lastly, thanks to Priyadarshini Sharma for getting this on my radar! Thanks #Packt# #PACKT PUBLISHING LIMITED Packt for this book 😀

    #node #node.js #packt #angular #javascript #react #next.js #vue
    2 people found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • Johannes N
    5.0 out of 5 stars A Node.js Book Defined by Advanced, Comprehensive Examples
    Reviewed in Germany on September 29, 2025
    Format: KindleVerified Purchase
    What makes this book shine is its use of sophisticated, hands-on code samples that bring advanced Node.js concepts to life.

    In the promises chapter, a web crawler with a task queue demonstrates how to handle many concurrent requests in a controlled way, while the idea of lazy promises reveals how promises are created only when they are truly needed.

    Streams are covered in depth, with examples including limited concurrent execution, which illustrates how to process multiple streams in parallel while keeping resource usage under control. Multiplexing and demultiplexing further demonstrate how several data flows can be merged into one stream and later separated again.

    The Advanced Recipes chapter examines asynchronously initialized components through the example of a database connection, with solutions based on the Command and State Patterns. It then tackles CPU-bound tasks via the classic subset sum problem, using both a process pool and a worker thread pool to distribute heavy computations efficiently.

    Chapter 13 stands out for its broad coverage of messaging and integration patterns, offering practical ways distributed systems can exchange data reliably. These ideas are applied in a chat application and a hash-cracking task distributor, using peer-to-peer messaging over ZeroMQ alongside broker-based messaging with AMQP/RabbitMQ and stream-based messaging with Redis Streams. The chapter concludes with a Request/Reply implementation that combines the Correlation Identifier and Return Address patterns, enabling reliable message routing even in multi-queue architectures.
  • Giuseppe G
    5.0 out of 5 stars Un vero concentrato di esperienza
    Reviewed in Italy on October 4, 2025
    Format: PaperbackVerified Purchase
    Ho iniziato a leggerlo da poco e mi sta piacendo ed entusiasmando molto!

    Penso che il volume possa essere diviso in due parti.

    La prima, relativamente ai primi capitoli, illustra la basi di Node.js, il suo funzionamento, la sua architettura, il sistema dei moduli, la "filosofia" alla sua base.
    Questa parte introduttiva è molto importante, non solo perché spiega le basi di Node, ma perché illustra come PENSARE in Node (la famosa "Node way").
    Non è affatto da sottovalutare: avere delle basi solide e capire bene il perché si fanno le cose in un certo modo (quello giusto e ottimale) è essenziale, dato che servirà poi nell'architettare e progettare dei sistemi che risultino performanti e scalabili.

    La seconda parte invece tratta gli aspetti avanzati della tecnologia, tra i quali il pattern asincrono, gli stream, il testing e i design pattern (ovviamente), fino a trattare anche scalabilità, pattern architetturali, messaging e integration.

    Al momento ho studiato alcuni pattern che mi interessavano per il mio progetto, ed ho apprezzato la vera qualità di questo libro:
    i concetti tecnici sono illustrati in maniera molto chiara e precisa, ma il suo pregio più grande è dovuto al fatto che gli autori sono riusciti a trasmettere insieme alla tecnica anche la loro vasta esperienza sul campo.
    Questo lo si vede chiaramente nei consigli che danno su come applicare i pattern a casi d'uso pratici, nel mondo reale, a progetti concreti.
    Non si tratta quindi di un mero e freddo catalogo di design pattern, ma di un pratico manuale pieno di esperienza concreta di chi questi problemi li ha già affrontati e risolti con successo nel modo migliore.

    Mi sento davvero di consigliarlo, penso che sia PERFETTO sia per chi si è avvicinato a Node da poco, sia per chi è già ad un buon livello.
    Customer image
    Giuseppe G
    5.0 out of 5 stars
    Un vero concentrato di esperienza

    Reviewed in Italy on October 4, 2025
    Ho iniziato a leggerlo da poco e mi sta piacendo ed entusiasmando molto!

    Penso che il volume possa essere diviso in due parti.

    La prima, relativamente ai primi capitoli, illustra la basi di Node.js, il suo funzionamento, la sua architettura, il sistema dei moduli, la "filosofia" alla sua base.
    Questa parte introduttiva è molto importante, non solo perché spiega le basi di Node, ma perché illustra come PENSARE in Node (la famosa "Node way").
    Non è affatto da sottovalutare: avere delle basi solide e capire bene il perché si fanno le cose in un certo modo (quello giusto e ottimale) è essenziale, dato che servirà poi nell'architettare e progettare dei sistemi che risultino performanti e scalabili.

    La seconda parte invece tratta gli aspetti avanzati della tecnologia, tra i quali il pattern asincrono, gli stream, il testing e i design pattern (ovviamente), fino a trattare anche scalabilità, pattern architetturali, messaging e integration.

    Al momento ho studiato alcuni pattern che mi interessavano per il mio progetto, ed ho apprezzato la vera qualità di questo libro:
    i concetti tecnici sono illustrati in maniera molto chiara e precisa, ma il suo pregio più grande è dovuto al fatto che gli autori sono riusciti a trasmettere insieme alla tecnica anche la loro vasta esperienza sul campo.
    Questo lo si vede chiaramente nei consigli che danno su come applicare i pattern a casi d'uso pratici, nel mondo reale, a progetti concreti.
    Non si tratta quindi di un mero e freddo catalogo di design pattern, ma di un pratico manuale pieno di esperienza concreta di chi questi problemi li ha già affrontati e risolti con successo nel modo migliore.

    Mi sento davvero di consigliarlo, penso che sia PERFETTO sia per chi si è avvicinato a Node da poco, sia per chi è già ad un buon livello.
    Images in this review
    Customer image Customer image Customer image
    Report
  • Luca Mezzalira
    5.0 out of 5 stars the Node.JS BIBLE!
    Reviewed in the United Kingdom on October 3, 2025
    Format: PaperbackVerified Purchase
    I am a huge fan of this book, I call it THE BIBLE for Node.js devs!
    If you only want a book to know everything needed to develop node.js apps, this is what you are looking for
  • Peter
    5.0 out of 5 stars I recommend
    Reviewed in Germany on November 27, 2025
    Format: PaperbackVerified Purchase
    I recommend, a useful book / reading
  • Alfonso
    5.0 out of 5 stars Una grande risorsa per tutti gli sviluppatori che usano Node.js!
    Reviewed in Italy on October 28, 2025
    Format: PaperbackVerified Purchase
    Questo libro è una risorsa indispensabile per chiunque voglia utilizzare Node.js in produzione. Ogni capitolo è scritto con grande cura, ricco di dettagli pratici e di preziosi tips & tricks maturati attraverso anni di esperienza reale. Alcuni argomenti sono particolarmente affascinanti e, anche se non sempre si applicano nella quotidianità, avere il libro a portata di mano è utilissimo per tornare rapidamente sui concetti più complessi quando serve, ad esempio, per approfondire temi come gli stream o altri aspetti avanzati del runtime.

    È assolutamente consigliato sia ai professionisti esperti, che troveranno un’ottima reference per i topic più avanzati, sia ai giovani sviluppatori, che potranno imparare come sfruttare Node.js al meglio e con solide basi.
    Customer image
    Alfonso
    5.0 out of 5 stars
    Una grande risorsa per tutti gli sviluppatori che usano Node.js!

    Reviewed in Italy on October 28, 2025
    Questo libro è una risorsa indispensabile per chiunque voglia utilizzare Node.js in produzione. Ogni capitolo è scritto con grande cura, ricco di dettagli pratici e di preziosi tips & tricks maturati attraverso anni di esperienza reale. Alcuni argomenti sono particolarmente affascinanti e, anche se non sempre si applicano nella quotidianità, avere il libro a portata di mano è utilissimo per tornare rapidamente sui concetti più complessi quando serve, ad esempio, per approfondire temi come gli stream o altri aspetti avanzati del runtime.

    È assolutamente consigliato sia ai professionisti esperti, che troveranno un’ottima reference per i topic più avanzati, sia ai giovani sviluppatori, che potranno imparare come sfruttare Node.js al meglio e con solide basi.
    Images in this review
    Customer image