5.0 Introduction

Caching accelerates content serving by storing request responses to

be served again in the future. Content caching reduces load to

upstream servers, caching the full response rather than running

computations and queries again for the same request. Caching

increases performance and reduces load, meaning you can serve

faster with fewer resources. Scaling and distributing caching servers

in strategic locations can have a dramatic effect on user experience.

It’s optimal to host content close to the consumer for the best perfor‐

mance. You can also cache your content close to your users. This is

the pattern of content delivery networks, or CDNs. With NGINX

you’re able to cache your content wherever you can place an NGINX

server, effectively enabling you to create your own CDN. With

NGINX caching, you’re also able to passively cache and serve cached

responses in the event of an upstream failure.

介绍

通过对请求的响应结果进行缓存,能够为后续相同请求提供加速服务。对相同请求

响应内容进行内容缓存(Content Caching),相比每次请求都重新计算和查询被代理

服务器,能有效降低被代理服务器负载。内容缓存能提升服务性能,降低服务器负

载压力,同时意味着能够使用更少的资源提供更快的服务。可伸缩的缓存服务从架构

层面来讲,能够显著提升用户体验,因为响应内容经过更少的转发就能够发送给用户,

同时能提升服务器性能。

results matching ""

    No results matching ""