Nginx – Understanding Caching

Nginx – Understanding Caching

 

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.

source: https://www.nginx.com/resources/glossary/nginx/

Nginx

NGINX, Caching and What this Means for your Website(s)

Each time you browse a web page a new request is made and the content is downloaded. During the time the web page is loading, the time it takes before you see the actual content depends on the number of requests being made (users browsing the website simultaneously) and the type of content being served: images, text, video etc, how many resources are still available on the server and how many resources are currently being used. All of these requests use up resources on the server such as CPU, Memory, etc. If a Web Page hasn’t changed, meaning the content is the same as before the last time it was loaded, there is relatively no need to download the same data as a new request each time using up server resources in the process especially when multiple users are downloading/browsing the same content at the same time. This is where Server Side caching becomes so valuable as it can save time and resources. The employment of NGINX on a server instead serves a cached version of your webpages, a version that’s already been loaded versus treating it as a new request and downloading the content again each time. Your web pages will load faster and your website(s) performance will improve drastically.

 

NGINX Beyond Web Serving

Though NGINX became famous as the fastest web server, the scalable underlying architecture has proved ideal for many web tasks beyond serving content. Because it can handle a high volume of connections, NGINX is commonly used as a reverse proxy and load balancer to manage incoming traffic and distribute it to slower upstream servers – anything from legacy database servers to microservices.

NGINX also is frequently placed between clients and a second web server, to serve as an SSL/TLS terminator or a web accelerator. Acting as an intermediary, NGINX efficiently handles tasks that might slow down your web server, such as negotiating SSL/TLS or compressing and caching content to improve performance. Dynamic sites, built using anything from Node.js to PHP, commonly deploy NGINX as a content cache and reverse proxy to reduce load on application servers and make the most effective use of the underlying hardware.

What Can NGINX and NGINX Plus Do for You?

NGINX Plus and NGINX are the best-in-class web server and application delivery solutions used by high‑traffic websites such as Dropbox, Netflix, and Zynga. More than 400 million websites worldwide, including the majority of the 100,000 busiest websites, rely on NGINX Plus and NGINX to deliver their content quickly, reliably, and securely.

  • NGINX makes hardware load balancers obsolete. As a software-only open source load balancer, NGINX is less expensive and more configurable than hardware load balancers, and is designed for modern cloud architectures. NGINX Plus supports on-the-fly reconfiguration and integrates with modern DevOps tools for easier monitoring.

  • NGINX is a multifunction tool. With NGINX, you can use the same tool as your load balancer, reverse proxy, content cache, and web server, minimizing the amount of tooling and configuration your organization needs to maintain. NGINX offers tutorials, webinars, and a wide array of documentation to get you on your feet. NGINX Plus includes rapid-response customer support, so you can easily get help diagnosing any part of your stack that uses NGINX or NGINX Plus.

  • NGINX keeps evolving. For the past decade NGINX has been at the forefront of development of the modern Web, and has helped lead the way on everything from HTTP/2 to microservices support. As development and delivery of web applications continue to evolve, NGINX Plus keeps adding features to enable flawless application delivery, from the recently announced support for configuration using an implementation of JavaScript customized for NGINX, to support for dynamic modules. Using NGINX Plus ensures you’ll stay at the cutting edge of web performance.

direct source: https://www.nginx.com/resources/glossary/nginx/

See More on NGINX website: https://www.nginx.com/products/

How useful was this post?

Let us know what you think!

Average rating / 5. Vote count:

Thanks for rating our post!

Don't forget to follow us on Facebook for more great tips. https://www.facebook.com/glowfrog

We are sorry that this post was not useful for you!

Let us improve this post!