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)

Summary


A good, performant application is all about how well it performs. A complete test suite ensures that you also perform well in developing and can introduce changes fast—changes that can improve performance. The test suite should have specific tests for benchmark analysis, with demanding time restrictions. The developers should know about them and work hard to keep the tests passing without having to lift those restrictions.

Use the test suite as a metric for production. Ensure that you merge new changes if your test suite covers your application source in at least 90 percent coverage and passes all the benchmark tests. Use a separate server for those tests, and don't mix tests with production. Keep your production server lean and fast, and change it only if you're sure it will keep that way.

In the next chapter, we'll look at bottlenecks—limits that degrade performance—and the situations in which you can't do anything about them. You must try hard to be ready for them and, if possible...