Activate your free membership today | Log-in

Tuesday, April 29th, 2008

Fast Streaming Ajax Proxy

Category: .NET, Performance

Omar AL Zabir, the co-founder & CTO of Pageflakes has written about a continuous streaming Ajax proxy that solves the common problem that all Ajax proxies have, the double delay in downloading content on server first and then delivering to the browser.

Omar talks about the continuous proxy that can help solve the problems. The approach for the continuous proxy is:

  • Read bytes from external server in chunks of 8KB from a separate thread (Reader thread) so that it’s not blocked
  • Store the chunks in an in-memory Queue
  • Write the chunks to ASP.NET Response from that same queue
  • If the queue is finished, wait until more bytes are downloaded by the reader thread

Making a difference

And if you wonder what difference this can make:

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.

There is even more detail on how the proxy has created.

Posted by Dion Almaer at 7:02 am
4 Comments

+++--
3.4 rating from 32 votes

4 Comments »

Comments feed TrackBack URI

Thanks.Good article

Comment by ermenisoykirmi — May 30, 2008

Fast Streams rock. Armenian Genocide

Comment by ArmenianGenocide — June 8, 2008

Gucci, on the othergucci handbags hand, presents us with popularity for all gucci diaper bagsthe wrong reasons. In fact, he is currently grounded in his home state of Georgia duefake gucci handbags to legal woes, according to The Associated Press. And unless the bandana-bearer’s albumgucci wallets for men represents a total departure from his current persona, ’s drug references, rampant materialism, brushes with the law and cheap wedding dressesspeak-and-spell rhymes make him a poster child for what ails mainstream rap.

Comment by wuwei — December 16, 2009

tiffany rings tiffany rings
tiffany engagement rings tiffany engagement rings
tiffany wedding rings tiffany wedding rings
tiffany necklace tiffany necklace
tiffany sets tiffany sets
tiffany bracelet tiffany bracelet
tiffany pendant tiffany pendant
tiffany earrings tiffany earrings
tiffany accessories tiffany accessories
tiffany charms tiffany charms
Abercrombie Jeans Abercrombie Jeans
Abercrombie Pants Abercrombie Pants
Abercrombie Tees Abercrombie Tees
Abercrombie Shorts Abercrombie Shorts
Abercrombie Sweater Abercrombie Sweater
Abercrombie Outerwear Abercrombie Outerwear
Abercrombie Hoodies Abercrombie Hoodies
Abercrombie Polo Abercrombie Polo
Abercrombie ShirtsAbercrombie Shirts
abercrombie henleys crew abercrombie henleys crew
hollister hollister
hollister uk hollister uk
abercrombie mens abercrombie mens
abercrombie womens abercrombie womens
Ruehl 925 Ruehl 925
ed hardy ed hardy
shamwow shamwow
nest match nest match

Comment by jenny625 — March 16, 2010

Leave a comment

You must be logged in to post a comment.