Node.js Design Patterns

Video description

When writing Node.js applications, it’s absolutely imperative that we employ battle-tested guidelines that can help us write efficient and resilient code. These guidelines are known as design patterns. Design patterns are an important part of software development and are a proven way of solving a given problem.

In this course, you’ll take a comprehensive look at industry-standard design patterns, identify challenges that you would commonly encounter while designing and developing software, and implement solutions in Node.js applications. The efficacy of these patterns has been proven over time and a lot of these standard patterns can be implemented when writing JavaScript apps with Node.js.

By implementing design patterns, you can write code that is crafted for efficiency and reusability and is resilient against errors and typical pitfalls that result from poorly written code.

What You Will Learn

  • Understand the importance of learning and using industry-standard design patterns when writing Node.js apps
  • Learn more about core creational design patterns such as Singletons, Factory, and Builder patterns
  • Efficiently avoid callback hell and implement asynchronous behavior using Promises, Async/Await, and Generators
  • Develop a deeper understanding of the module system in Node.js and to implement patterns such as dependency injection
  • Get an insight into structural design patterns such as Proxy, Adapter, Decorator, and others that can help you create systematic, efficient relationships between objects and entities
  • Reuse well-known techniques to solve common design and coding issues
  • Understand the behavioral design patterns such as Strategy, Observers, Middleware, and even the Publisher-Subscriber pattern to craft efficient communication patterns between objects, processes, and even applications


This course is for developers and software architects with a basic working knowledge of JavaScript who are interested in acquiring a deeper understanding of how to design and develop enterprise-level Node.js applications. The intended audience is expected to have basic knowledge of Node.js and the ecosystem, good command over JavaScript, and intermediate working skills on Linux/MacOS.

About The Author

SACHIN BHATNAGAR: Sachin Bhatnagar began dabbling with Computer Programming and graphics at the age of 14 on a Sinclair ZX Spectrum that ran the BASIC programming language.

During the early 2000s, Sachin forayed into Computer Graphics and Visual Effects training and production. From developing world-class curricula to imparting training to over five thousand students in the classroom and over twenty-five thousand online, Sachin has actively contributed to fueling innovation, creating brand identities, and crafting innovative software solutions for corporate companies and individuals alike.

He has also worked with one of India’s leading media and entertainment training companies as a vice president. Having said all this, Sachin's first love is coding and he strongly emphasizes its importance to one and all. His passion for education and love for coding has culminated in several courses on technology. His expertise lies in JavaScript, Node.js, Vue.js, Chatbots, and the list keeps growing all the time.

Publisher resources

Download Example Code

Product information

  • Title: Node.js Design Patterns
  • Release date: February 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781789538397