• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Ajax scaleable? Why or why not?

 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Ajax scaleable? Why or why not? Please provide examples/code if possible.

Thanks,
Amit
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11866
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is an http call. Enough said.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would example code for this question look like?
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of examples/code do you want?
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
example explaining the usage and the scalability part.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said before it is an html call, what is any different than any other http call?

Eric
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So basically it depends on the usage, is that the final conclusion?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it depends on the server. Scalability is a server-side issue; the client-side hardly plays a role in that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic