Summary

Developing should be a great experience. Performant applications require some restrictions on how they are designed and developed. Knowing most of the common patterns helps choose wise paths for your application and avoids some performance penalties in the future. However, patterns are not all, and a solid understanding of what's behind the Node.js platform really helps you reach a few levels up on the performance scale.

Even after choosing good patterns and doing the best at developing using some of the optimizations tips described in this chapter, the application can perform poorly on some scenarios. Don't optimize unless you need it. Follow the patterns and the tips, but don't think excessively about it until you test your application ...

Get Node.js High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.