wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes HTTP Streaming on Head rush ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTTP Streaming on Head rush ajax" Watch "HTTP Streaming on Head rush ajax" New topic

HTTP Streaming on Head rush ajax

Weerawit Maneepongsawat
Ranch Hand

Joined: Apr 11, 2002
Posts: 203
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

Weerawit<br />SCJP 1.4, SCWCD 1.2, SCWCD 1.4, SCBCD 1.3, SCBCD 5.0, SCMAD 1.0, SCJA 1.0, SCDJWS, SCJD, SCEA, SCDJWS 1.5
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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;


[My Blog]
All roads lead to JavaRanch
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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/

David Dong
Ranch Hand

Joined: Aug 15, 2004
Posts: 58
Do you mean opening a connection to another webpage?
Do you mean Tunneling ?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Originally posted by David Dong:
Do you mean opening a connection to another webpage?
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.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: HTTP Streaming on Head rush ajax
It's not a secret anymore!