|
1 | | -# Node.js Design Patterns, Fourth Edition |
| 1 | +<h1 align="center"> |
| 2 | +Node.js Design Patterns, Fourth Edition</h1> |
| 3 | +<p align="center">This is the code repository for <a href ="https://www.packtpub.com/en-us/product/nodejs-design-patterns-fourth-edition/9781803238944"> Node.js Design Patterns, Fourth Edition</a>, published by Packt. |
| 4 | +</p> |
2 | 5 |
|
3 | | -Node.js Design Patterns, Fourth Edition, published by Packt |
| 6 | +<h2 align="center"> |
| 7 | +Level up your Node.js skills and design production-grade applications using proven techniques |
| 8 | +</h2> |
| 9 | +<p align="center"> |
| 10 | +Luciano Mammino, Mario Casciaro</p> |
4 | 11 |
|
5 | | -The all the code examples in this repo are organised by chapter, for every |
6 | | -chapter you'll have multiple examples, each one with its own README and |
7 | | -`package.json`. |
| 12 | +<p align="center"> |
| 13 | + <a href="https://packt.link/free-ebook/9781803238944"><img width="32px" alt="Free PDF" title="Free PDF" src="https://cdn-icons-png.flaticon.com/512/4726/4726010.png"/></a> |
| 14 | +       |
| 15 | + <a href="https://packt.link/gbp/9781803238944"><img width="32px" alt="Graphic Bundle" title="Graphic Bundle" src="https://cdn-icons-png.flaticon.com/512/2659/2659360.png"/></a> |
| 16 | +       |
| 17 | + <a href="https://www.amazon.com/Node-js-Design-Patterns-production-grade-applications/dp/1803238941/"><img width="32px" alt="Amazon" title="Get your copy" src="https://cdn-icons-png.flaticon.com/512/15466/15466027.png"/></a> |
| 18 | +       |
| 19 | +</p> |
| 20 | +<details open> |
| 21 | + <summary><h2>About the book</summary> |
| 22 | +<a href="https://www.packtpub.com/product/unity-cookbook-fifth-edition/9781805123026"> |
| 23 | +<img src="https://content.packt.com/B18437/cover_image_small.jpg" alt="Unity Cookbook, Fifth Edition" height="256px" align="right"> |
| 24 | +</a> |
8 | 25 |
|
9 | | -We are using `pnpm`, so you'll see `pnpm-lock.yaml` files for those examples |
10 | | -where you are expected to install dependencies. If you prefer to use other |
11 | | -package manages (such as `npm` or `yarn`), make sure to delete these files and |
12 | | -then install the dependencies with your package manager of choice. |
| 26 | +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. |
| 27 | +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. |
| 28 | +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. |
| 29 | +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.</details> |
| 30 | +<details open> |
| 31 | + <summary><h2>Key learnings</summary> |
| 32 | +<ul> |
| 33 | + |
| 34 | +<li>Understand Node.js basics and its async event-driven architecture</li> |
| 35 | + |
| 36 | +<li>Write correct async code using callbacks, promises, and async/await</li> |
| 37 | + |
| 38 | +<li>Harness Node.js streams to create data-driven processing pipelines</li> |
| 39 | + |
| 40 | +<li>Implement trusted software design patterns for production-grade applications</li> |
| 41 | + |
| 42 | +<li>Write testable code and automated tests (unit, integration, E2E)</li> |
| 43 | + |
| 44 | +<li>Use advanced recipes: caching, batching, async init, offload CPU-bound work</li> |
| 45 | + |
| 46 | +<li>Build and scale microservices and distributed systems powered by Node.js</li> |
| 47 | + |
| 48 | +</ul> |
| 49 | + |
| 50 | + </details> |
| 51 | + |
| 52 | +<details open> |
| 53 | + <summary><h2>Chapters</summary> |
| 54 | + <img src="https://cliply.co/wp-content/uploads/2020/02/372002150_DOCUMENTS_400px.gif" alt="Unity Cookbook, Fifth Edition" height="556px" align="right"> |
| 55 | +<ol> |
| 56 | + |
| 57 | + <li>The Node.js Platform</li> |
| 58 | + |
| 59 | + <li>The Module System</li> |
| 60 | + |
| 61 | + <li>Callbacks and Events </li> |
| 62 | + |
| 63 | + <li>Asynchronous Control Flow Patterns with Callbacks</li> |
| 64 | + |
| 65 | + <li>Asynchronous Control Flow Patterns with Promises and Async/Await</li> |
| 66 | + |
| 67 | + <li>Coding with Streams</li> |
| 68 | + |
| 69 | + <li>Creational Design Patterns</li> |
| 70 | + |
| 71 | + <li>Structural Design Patterns </li> |
| 72 | + |
| 73 | + <li>Behavioral Design Patterns</li> |
| 74 | + |
| 75 | + <li>Testing: Patterns and Best Practices</li> |
| 76 | + |
| 77 | + <li>Advanced Recipes</li> |
| 78 | + |
| 79 | + <li>Scalability and Architectural Patterns </li> |
| 80 | + |
| 81 | + <li>Messaging and Integration Patterns</li> |
| 82 | + |
| 83 | +</ol> |
| 84 | + |
| 85 | +</details> |
| 86 | + |
| 87 | + |
| 88 | +<details open> |
| 89 | + <summary><h2>Requirements for this book</summary> |
| 90 | +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. |
| 91 | +To get the most out of this book, you can download the example code files and the color images. |
| 92 | + </details> |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +<details> |
| 97 | + <summary><h2>Get to know authors</h2></summary> |
| 98 | + |
| 99 | +_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 (<a href="https://fourtheorem.com/">fourtheorem.com</a>), 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 <a href="https://loige.co/">loige.co</a>. |
| 100 | + |
| 101 | +_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 <i>Node.js Design Patterns</i>. His proudest moment is seeing his soft ware being used for astronaut rescue operations. |
| 102 | + |
| 103 | +</details> |
| 104 | +<details> |
| 105 | + <summary><h2>Other related books</h2></summary> |
| 106 | +<ul> |
| 107 | + |
| 108 | + <li><a href="https://www.packtpub.com/en-us/product/react-key-concepts-second-edition/9781836202271">React Key Concepts, Second Edition</a></li> |
| 109 | + |
| 110 | + <li><a href="https://www.packtpub.com/en-us/product/learn-model-context-protocol-with-python-first-edition/9781806103232">Learn Model Context Protocol with Python, First Edition</a></li> |
| 111 | + |
| 112 | +</ul> |
| 113 | + |
| 114 | +</details> |
0 commit comments