- Microservice Patterns and Best Practices
- Vinicius Feitosa Pacheco
- 233字
- 2021-06-30 19:02:50
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.
- 數(shù)據(jù)通信網(wǎng)絡(luò)實(shí)踐:基礎(chǔ)知識(shí)與交換機(jī)技術(shù)
- Web安全防護(hù)指南:基礎(chǔ)篇
- 網(wǎng)絡(luò)故障現(xiàn)場(chǎng)處理實(shí)踐(第4版)
- 萬物互聯(lián):蜂窩物聯(lián)網(wǎng)組網(wǎng)技術(shù)詳解
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國互聯(lián)網(wǎng)安全大會(huì)文集
- Mastering JavaFX 10
- Getting Started with Grunt:The JavaScript Task Runner
- Yii Application Development Cookbook(Second Edition)
- 6G新技術(shù) 新網(wǎng)絡(luò) 新通信
- Windows Server 2012 Hyper-V虛擬化管理實(shí)踐
- 夢(mèng)工廠之材質(zhì)N次方:Maya材質(zhì)手冊(cè)
- INSTANT LinkedIn Customization How-to
- 計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)
- 網(wǎng)絡(luò)安全之道
- 圖解物聯(lián)網(wǎng)