File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Is Ajax scaleable? Why or why not? 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 "Is Ajax scaleable? Why or why not?" Watch "Is Ajax scaleable? Why or why not?" New topic
Author

Is Ajax scaleable? Why or why not?

Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Is Ajax scaleable? Why or why not? Please provide examples/code if possible.

Thanks,
Amit


Amit Tank
Linked In
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11278
    
  59

Sounds like a homework question. What do you think the answers are? Once you have given some views maybe others can comment on them and give you additional points to ponder.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is an http call. Enough said.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What would example code for this question look like?
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
This question just came out as a discussion in the office, not really a homework question for me.

I think that since Ajax is kind of a javascript and there are frameworks like Dojo and Extjs which are higly extensible, so I think that ajax is scalable to some extent. I don't have much exposure to Ajax/Javascript myself, I am mostly a backend server side programmer.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What kind of examples/code do you want?
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
example explaining the usage and the scalability part.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
As I said before it is an html call, what is any different than any other http call?

Eric
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
from a browser we can make multiple ajax request. So I think that ajax is scalable. If we see website like http://slashdot.org/ or igoogle .com, we can see that they are scalable. So its like we can make a call to multiple servers(web services) and get data faster on the client side. igoogle sometimes doesn't scale so much. If you add too many gadgets it becomes slow. But slashdot loads 10 stories per pages and as you go to the end of the page it loads 10 more stores. So it scales perfectly. Any thoughts?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Scalability is less a function of the technology being used than of the server side that is being accessed; both the server hardware and the code being executed for each request play into this.

So a question like "does AJAX scale" doesn't make much sense - it's easy to use it so that the server side doesn't scale, and it's easy to use it in a way so that the server side does scale.

As to the slowdown with lots of gadgets - that's more likely a consequence of the 10 calls being made successively, and of the browser having to handle 10 responses and the associated page re-layouting. (Note that browsers generally will not make more than two requests to a server in parallel.)


Ping & DNS - updated with new look and Ping home screen widget
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
So basically it depends on the usage, is that the final conclusion?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
No, it depends on the server. Scalability is a server-side issue; the client-side hardly plays a role in that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Ajax scaleable? Why or why not?
 
Similar Threads
AJAX engine
JSTL vs DOM generated HTML Table
AJAX & Flash
Ajax
Checking file size before uploading