Book Image

Node.js High Performance

By : Diogo Resende
Book Image

Node.js High Performance

By: Diogo Resende

Overview of this book

Table of Contents (14 chapters)

Chapter 2. Development Patterns

Developing is just great. It gives you a sense of freedom to create new things. This is true for almost every language—a freedom to create something in your own way. This means that there are good ways and not-so-good ways to do the same task. A developer, during the course of their life, will face different problems with similar solutions and will adopt patterns. For some problems, they will know the patterns they are using; for others, they will be using patterns that they probably don't even know.

Some patterns directly increase performance, and others do it indirectly because of an architecture pattern that is able to scale. Creating high-performance applications involves knowing every bit of running code, which results in knowing the patterns used across an application. Sometimes, they're unintentional. At other times, they are enforced because of the benefits of a specific pattern. Patterns are everywhere, from the creation of objects to the interaction...