官术网_书友最值得收藏!

Caching at the client level

A caching strategy is one of the most important items for discussion when it comes to web applications; with microservices it is no different.

When we speak of cache at the client level, it means that the request only passes to be processed on the backend, if really necessary. In other words, it tries to block direct access to the backend to requests that have already been implemented in the recent past.

A very useful tool for this strategy is the Varnish Cache, defined as: the Varnish Cache accelerator is a web application also known as reverse HTTP proxy caching. In the following diagram, we can see the operation of Varnish Cache:

The requests come from various types of web clients. Varnish Cache passes the request to the Server the first time only and stores the received data from the Server. If a second request for the same information already in the Varnish Cache is made, then Varnish Cache will answer the request, leaving the Server free of such access.

The Varnish Cache can store a number of different types of information in memory, but it is critical and targets the transmitted data. If the information is not componentized, Varnish always let the request go to the Server; you will have no way of knowing if the request is the same type.

主站蜘蛛池模板: 兰坪| 静乐县| 巴中市| 广南县| 布尔津县| 虹口区| 禹州市| 荥阳市| 江津市| 广水市| 阆中市| 都江堰市| 定陶县| 北辰区| 阿拉善左旗| 泾川县| 新乡市| 淮阳县| 苍山县| 平阳县| 阳城县| 靖宇县| 德阳市| 含山县| 黔江区| 蕉岭县| 铜陵市| 兴和县| 庆阳市| 南开区| 正阳县| 无锡市| 南川市| 嵊泗县| 安宁市| 正定县| 平顺县| 澜沧| 江都市| 玉龙| 慈利县|