• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is Ajax scaleable? Why or why not?

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is Ajax scaleable? Why or why not? Please provide examples/code if possible.

Thanks,
Amit
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is an http call. Enough said.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
example explaining the usage and the scalability part.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So basically it depends on the usage, is that the final conclusion?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic