Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Author

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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


[My Blog]
All roads lead to JavaRanch
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


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
 
Similar Threads
opening xls fine in web Browser using jsp
Running Runtime.getRuntime().exec() problem
BlazeDS is not responding through Apache
Read XML file-->listDropdown
Asynchronous in AJAX