Book Image

NGINX High Performance

By : Rahul Sharma
Book Image

NGINX High Performance

By: Rahul Sharma

Overview of this book

<p>NGINX is one of the most common free, open source web servers. Its performance-oriented architecture and small footprint makes it an ideal choice for high-traffic websites.</p> <p>NGINX offers great performance and optimal resource utilization to its administrators. This practical guide walks you through how to tune one of the leading free open source web servers to attain optimal performance for high-traffic sites. It also explores ways to improve network utilization for high loads.</p> <p>The tour starts with an overview of the NGINX architecture. You will build and configure NGINX for optimal utilization of the hardware available. The book demonstrates various practices to improve last mile content delivery by using timeouts, caching, and compression. You'll also discover various free open source tools to test and benchmark web server performance, allowing you to verify NGINX performance at every step.</p>
Table of Contents (14 chapters)

Chapter 6. Using NGINX Cache

Slow data access can be improved drastically using a layer of caching. Caching temporarily saves recently used information in a store optimized for information lookup. This improves the server's performance by reducing the number of lookups required to load the same resource multiple times.

NGINX can cache static as well as dynamic content. If used in front of an upstream, NGINX will cache the responses received, thus doing away with future requests to the upstream server. In this chapter, we will cover the following topics:

  • Caching static content

  • Using FastCGI and the related cache

  • Using Proxy and the related cache

  • Using Memcache