运维派 你有自己的Web缓存知识体系吗?

论坛 期权论坛     
选择匿名的用户   2021-5-30 01:17   365   0
<div class="entry-hd" style="overflow:hidden; font-family:Helvetica,Arial,&#39;Microsoft YaHei&#39;,SimSun,Verdana,sans-serif; font-size:14px; line-height:19.6000003814697px">
<h2 class="entry-title" style="font-size:24px; margin:20px 20px 0px; font-weight:normal; word-break:break-word"> 你有自己的Web缓存知识体系吗?</h2>
<div class="entry-meta" style="overflow:hidden; position:relative; margin:0px 20px">
  <p style="margin-top:5px; margin-bottom:15px"><br> </p>
</div>
</div>
<div class="entry-bd" style="margin:0px 20px; font-family:Helvetica,Arial,&#39;Microsoft YaHei&#39;,SimSun,Verdana,sans-serif; font-size:14px; line-height:19.6000003814697px">
<div class="entry-content" style="margin:0px 0px 15px; font-family:&#39;hiragino sans gb&#39;,&#39;microsoft yahei&#39;,simsun,Arial,Helvetica,Verdana,sans-serif; color:rgb(85,85,85); word-break:break-word">
  <h4 style="font-size:1em; margin:1.33em 0px"><strong>赵舜东:江湖人称赵班长,曾在武警某部负责指挥自动化的架构和运维工作,2008年退役后一直从事互联网运维工作。曾带团队负责国内某电商的运维工作,《saltstack入门与实践》作者,某学院高级讲师。</strong></h4>
  <h2 style="margin:0.83em 0px"><span style="color:rgb(51,153,102)">一、引言</span></h2>
  <p style="margin-top:0px; margin-bottom:1em; word-break:break-word">学技术一定要成体系,这是我个人的学习目标,也就是在一个特定的范围内,把与此相关的技术都尽量的搞清楚、搞明白。<br> 我把与Web缓存相关的内容从我编写的《Web运维知识体系》(链接1)中拿了出来,进行完善后,形成了一个单独的《Web缓存知识体系》(链接2),分享给大家,仅供参考。<br> 备注:</p>
  <blockquote style="margin:1em 0px; position:relative; padding:40px 30px 30px 60px; color:rgb(51,51,51); background:rgb(247,247,247)">
   <p style="margin-top:0px; margin-bottom:1em; color:rgb(85,85,85); word-break:break-word"> 链接1 : <a href="https://www.unixhot.com/page/ops" rel="noopener noreferrer" style="color:rgb(86,172,104); text-decoration:none; padding-right:18px" target="_blank">https://www.unixhot.com/page/ops</a><br> 链接 2 : <a href="https://www.unixhot.com/page/cache" rel="noopener noreferrer" style="color:rgb(86,172,104); text-decoration:none; padding-right:18px" target="_blank">https://www.unixhot.com/page/cache</a></p>
  </blockquote>
  <h2 style="margin:0.83em 0px"><span style="color:rgb(51,153,102)">二、Web缓存知识体系</span></h2>
  <p style="margin-top:0px; margin-bottom:1em; word-break:break-word">在<a href="http://www.yunweipai.com/archives/6636.html" rel="noopener noreferrer" style="color:rgb(86,172,104); text-decoration:none" target="_blank">Web</a>架构中,我们经常会听到分级或者分层这个词,这就是<a href="http://www.yunweipai.com/archives/7814.html" rel="noopener noreferrer" style="color:rgb(86,172,104); text-decoration:none" target="_blank">架构</a>中比较重要的一个理念:分层设计(分级设计)。<br> 那么对于一个Web站点来说,从一个HTTP请求产生到服务器返回数据,会经过非常多不同层次的缓存,我整理了一个“相对”完善的Web缓存分层体系。</p>
  <p style="margin-top:0px; margin-bottom:1em; word-break:break-word"><img alt="你有自己的Web缓存知识体系吗?" class="lazy size-full wp-image-8242 aligncenter" height="375" src="https://beijingoptbbs.oss-cn-beijing.aliyuncs.com/cs/5606289-7def91a303fcda924d6d7143b5303ca6.jpg" style="border:0px; vertical-align:middle; clear:both; display:block; margin:0px auto 1em; height:auto; max-width:100%" width="605"></p>
  <p style="margin-top:0px; margin-bottom:1em; word-break:break-word">本体系从全局七个层面列举了各个层面涉及到的缓存技术和方法,此体系结构仅包含读缓存(Cache),不包含写缓冲(Buffer),所以很多缓冲区没有列举,请见谅。</p>
  <ul style="margin:1em 0px; padding:0px 0px 0px 40px"><li style="margin-bottom:1em">用户层:主要是相对于用户端可以使用到的缓存技术,最常用的就是浏览器缓存。</li><li style="margin-bottom:1em">代理层:目前业内主要以使用CDN为主。</li><li style="margin-bottom:1em">Web层: Web服务器的自身的缓存技术,以及操作码缓存“OPCache”。</li><li style="margin-bottom:1em">应用层:应用层面例如框架级别的动态缓存内容输出,以及业务相关的本地缓存和页面静态化,例如大型电商的商品页面几乎都是使用的页面静态化技术。</li><li style="margin-bottom:1em">数据层:主要列举了分布式缓存和数据库本身的缓存,如果从存储角度考虑可能还有更多。</li><li style="margin-bottom:1em">系统层:操作系统层面的缓存技术,主要涉及CPU、内存、IO。</li><li style="margin-bottom:1em">物理层:仅列举了存储设备的RAID卡和磁盘上的高速缓存区,当然也有写缓存的作用了。</li></ul>
  <h2 style="margin:0.83em 0px"><span style="color:rgb(51,153,102)">三、Buffer与Cache</span></h2>
  <
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP