[英]What type of cache better to use to improve performance of website?
I have high-load informative website with 10 000+ hits/day. 我的网站内容丰富,每天的点击量超过1万次。 It was rewritten on
Symfony 2 Framework
with Doctrine2 ORM
. 已使用
Doctrine2 ORM
在Symfony 2 Framework
上对其进行了重写。 Site have heavy informative pages, each load on development server 0.5 - 1.5 seconds approximately. 网站上有大量的信息页面,每个在开发服务器上的负载大约为0.5-1.5秒。 Note, that it time on development server , so it has minimal load.
请注意,它的时间在开发服务器上 ,因此负载最小。
I know there are many cache providers such as Varnish, Memcached, APC, HTTP, etc... Please, suggest me on what layer ( DB , HTTP , etc...) and what type of cache better to use for improve performance of this site? 我知道有很多缓存提供程序,例如Varnish,Memcached,APC,HTTP等...,请向我建议在哪一层( DB , HTTP等)以及哪种类型的缓存更适合用于提高性能。这个网站?
Like @Mark said in the comment, " there is no best answer to such an open-ended question ". 就像@Mark在评论中说的那样,“ 对这样一个开放性问题没有最佳答案 ”。 At first, let's find the what : which component is the system bottleneck, DB, HTTP response, javascript...?
首先,让我们找到什么 :系统瓶颈,数据库,HTTP响应,javascript ...是哪个组件?
And in each component, there are other questions: 在每个组件中,还有其他问题:
.... ....
Let's have the checklist, which list those questions <--> answers. 让我们看一下清单,其中列出了这些问题<->答案。 The answer for " what type of cache better to use for improve performance of this site " TOTALLY DEPENDS on those.
答案是“ 哪种类型的缓存更好地用于提高本网站的性能 ” 完全取决于这些。
Somewhere to reference: 参考的地方:
And I recommend a very very good book: Scale PHP Application , in which you can learn real use cases, how to debug, how to profile.. 而且我推荐一本非常非常好的书: Scale PHP Application ,在其中您可以学习实际的用例,如何调试,如何进行概要分析。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.