Fast Streaming AJAX Proxy, continuously download from cross domain
Due to browser’s prohibition on cross domain XMLHTTP call, all AJAX websites must have server side proxy to fetch content from external domain like Flickr or Digg. From client side javascript code, an XMLHTTP call goes to the server side proxy hosted on the same domain and then the proxy downloads the content from the external server and sends back to the browser. In general, all AJAX websites on the Internet that are showing content from external domains are following this proxy approach except some rare ones who are using JSONP. Such a proxy gets a very large number of hits when a lot of component on the website are downloading content from external domains. So, it becomes a scalability issue when the proxy starts getting millions of hits. Moreover, web page’s overall load performance largely depends on the performance of the proxy as it delivers content to the page. In this article, we will take a look how we can take a conventional AJAX Proxy and make it faster, asynchronous, continuously stream content and thus make it more scalable.
You can see such a proxy in action when you go to Pageflakes.com. You will see flakes (widgets) loading many different content like weather feed, flickr photo, youtube videos, RSS from many different external domains. All these are done via a Content Proxy. Content Proxy served about 42.3 million URLs last month which is quite an engineering challenge for us to make it both fast and scalable. Sometimes Content Proxy serves megabytes of data, which poses even greater engineering challenge. As such proxy gets large number of hits, if we can save on an average 100ms from each call, we can save 4.23 million seconds of download/upload/processing time every month. That’s about 1175 man hours wasted throughout the world by millions of people staring at browser waiting for content to download.
Such a content proxy takes an external server’s URL as a query parameter. It downloads the content from the URL and then writes the content as response back to browser.
The above timeline shows how request goes to the server and then server makes a request to external server, downloads the response and then transmits back to the browser. The response arrow from proxy to browser is larger than the response arrow from external server to proxy because generally proxy server’s hosting environment has better download speed than the user’s Internet connectivity.Such a content proxy is also available in my open source Ajax Web Portal Dropthings.com. You can see from its code how such a proxy is implemented.
Read more www.omaralzabir.com
khai 2:22 pm on September 21, 2011 Permalink |
slm . Kena tukar plan ke?
ewan 1:02 pm on September 22, 2011 Permalink |
ad trick bru maxis x??
jqckie 2:39 am on September 23, 2011 Permalink |
ewan sume proxy yg apear d cni ni dah brkurun lma sdh…wan lau koe jmpa trik baru share kat emel aq erk.
genji24 5:17 am on September 23, 2011 Permalink |
trik maxis….
zarawi 1:59 pm on October 10, 2011 Permalink |
Nk tenet mxs trbru dlm fb sy zarawi harun.
raka 6:20 pm on October 19, 2011 Permalink |
sudah sya coba tapi ga bisa download. 0kb trz .
ada trik yg lain ga? yg bisa download. . .
Flora 9:07 am on October 26, 2011 Permalink |
Enlieghtinng the world, one helpful article at a time.
Firda 4:54 pm on November 7, 2011 Permalink |
Kenapa skarang snaptu gabisa didowload?
eMingko 11:20 pm on August 1, 2012 Permalink |
sdh diambil sma fb om…