Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Streaming on Head rush ajax

 
Weerawit Maneepongsawat
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it has any example for HTTP Streaming ? or any example of design patterns relate to Ajax ?

if yes, Could you list them?

Thanks in advance
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No design patterns, as stated here :

until you really get a hold of the browser, and its role in web applications, most of what you can learn about patterns and usage of Ajax is really sort of useless;


http://www.coderanch.com/t/117865/HTML-JavaScript/Ajax-pitfalls-Head-Rush
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This approach of programming can be very hard on your server. A good alternative would be to use Flex which uses Socket connections instead of going over HTTP prtocal.

You can check out Flex here: http://labs.macromedia.com/flexproductline/

Eric
 
David Dong
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean opening a connection to another webpage?
or
Do you mean Tunneling ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Dong:
Do you mean opening a connection to another webpage?
or
Do you mean Tunneling ?

I believe Eric means that having each client keep an open TCP connection to your web server is what's hard on the server. It's not "hard" as in the server will crash, but there is a limit to how many physical TCP connections a given server can keep up. Similarly, each of those TCP connections might have a live server-side thread (or process even!) generating some response content which means that you're further limited by the number of simultaneous threads your server can support.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic