谷歌是如何提供结果如此之快? [英] How does Google serve results so fast?
问题描述
一次又一次,当我搜索在谷歌的话题,
谷歌返回我的结果,也打印出一些统计像
Time and again when I search for a topic on Google, Google returns me the results and also prints out some stats like
1 - 10,共约885万用于J2ME(0.24秒),
"Results 1 - 10 of about 8,850,000 for j2me. (0.24 seconds)"
我注意到,由谷歌服务的结果采取秒处于第二范围内的一小部分。
I notice that the seconds taken by Google to serve the results are in fraction of a second range.
谷歌是如何服务于网页如此之快,它已经在其结束使用什么样的数据库优化技巧?
How does Google serve pages so fast, what kind of database optimization tricks has it used at its end?
推荐答案
我觉得对于前端表现的主要原因是:
I think the main reason for the frontend performance are:
- 每个请求被分配到并行(我是在什么地方读到每个查询命中大约12机),可能是一个单机系列的机器从这些机器收集的响应
- 所有指标数据都在RAM中举行。随着指数的数据,我的意思是术语和词汇的贴子列表索引和在谷歌的情况下,可能很多更多的索引例如拼写更正。即使一个磁盘I / O的某个磁盘的延迟寻求prevents这样的表现。
- Each request is distributed to a series of machines in parallel (I have read somewhere that each query hits around 12 machines), probably a single machines gathers the responses from these machines
- All index data are held in RAM. With index data, I mean the term vocabulary and the postings list index and in the case of Google probably a lot more indexes e.g. for spelling corrections. Even with a single disk I/O somewhere the latency of the disk seek prevents such a performance.
谷歌的Map / Reduce,GFS是后台处理很好的工具,但他们什么都没有做前端的性能。
Googles Map/Reduce, GFS are great tools for background processing, but they have nothing to do with the frontend performance.
这篇关于谷歌是如何提供结果如此之快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!