Book Image

Node.js Design Patterns [Video]

By : SACHIN BHATNAGAR
Book Image

Node.js Design Patterns [Video]

By: SACHIN BHATNAGAR

Overview of this book

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. All the code and supporting files for this course are available on GitHub at https://github.com/PacktPublishing/Node.js-Design-Patterns-v-. This course uses Node.js 10.8.0, and JavaScript ES8, while not the latest version available, it provides relevant and informative content for legacy users of Node.js, and JavaScript.
Table of Contents (6 chapters)
Chapter 6
Messaging Patterns
Content Locked
Section 2
Publisher – Subscriber
When multiple services need to communicate with each other, or when two isolated mediums want to share data, or when a source needs to publish data for multiple independent consumers, the publisher – subscriber pattern is a great solution. - Understand the publisher-subscriber pattern and its use cases. - Study the role of a message broker as a unifying medium. - Demonstrate the use of a message broker and the publisher – subscriber pattern.