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)

What are patterns?


Patterns are not libraries or classes. They're concepts—reusable solutions to common programming problems, tested and optimized for specific use cases. As they're just concepts meant to solve specific problems, they have to be implemented in your language. Every pattern has its advantages and disadvantages, and choosing a wrong pattern for a problem can cause you a big headache.

Patterns can speed up the development process because they provide well-tested and well-proven development paradigms. Reusing patterns helps prevent issues and improves code readability between developers who are familiar with them.

Patterns have a lot of importance in high-performance applications. Sometimes, in order to achieve some flexibility, patterns introduce a new level of indirection in the code, which may reduce performance. You should choose when to introduce a pattern and know when that introduction will hurt the performance metric that you're targeting.

Knowing good patterns is essential...