问题描述
我保持研究Facebook的bigpipe技术的这个流程,但我有这个问题。
I keep studying this flow of the Facebook's bigpipe technique but I have this question.
这个东西是如何实现的?是否通过ajax请求接收了小网页?
我一直在搜索这个bigpipe的源代码,但它指向一个404页面的github。
How this thing is implemented? does the pagelet is received through an ajax request?I keep on searching for the source code of this bigpipe but it points me to a 404 page of github.
有人可以在低级别解释这个bigpipe (编程算法)方式。我真的对这种技巧感兴趣。
Can someone explain this bigpipe in a low level(programming algorithm) way. I'm really interested with this technique.
提前感谢
推荐答案
p>嗯,不,主要内容和小页面都是用相同的连接接收的。您可以在PHP中找到一个开放(简单的)BigPipe实现。
Well, no, the main content and pagelets are received with the same connection. The pagelets are simply streamed as they are generated to the browser, and placed in the document with Javascript.
a href =http://www.juhonkoti.net/2010/10/01/open-bigpipe-javascript-implementation> here 。
You can find an open (and simple) BigPipe implementation in PHP here.
这篇关于Facebook Bigpipe技术算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!