Performance
Performance is almost always regarded as a feature. While different kinds of applications may be satisfied with different levels of performance, especially for end-user-facing applications, the general mantra is faster is better. Amazon claims that every 100 ms of additional latency costs them about 1% in sales. This is a massive number and should not be underestimated.
Resource caching
As we saw in Chapter 1, there are multiple kinds of websites these days, such as the following:
- Static websites
- Dynamic websites (server-side rendering or SSR)
- Dynamic websites with AJAX
- Single-page applications (SPAs)
Every kind has its own techniques to boost performance and stay scalable. For instance, static websites will use an in-memory cache to avoid reading the page from the disk on every request. This simple feature can be already used in SPAs; however, it must be implemented by hand for SSR.
Most languages and frameworks that deal with SSR have...