Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: AJAX-based Perlmonks.com?

by Corion (Pope)
on Dec 12, 2005 at 12:16 UTC ( #515997=note: print w/ replies, xml ) Need Help??


in reply to Re^2: AJAX-based Perlmonks.com?
in thread AJAX-based Perlmonks.com?

The chatterbox will never be Ajax-based for two reasons. First, Pair.com does not allow "chat servers" in its terms of use. The CB already is on the very border of that in my opionion. Second, the server load would multiply if every page that a browser has open on Perlmonks would reload all the time. I usually have two or three pages open, but when starting the day, I open at least all new root nodes in separate tabs - the load inflicted on Perlmonks by a constantly refreshing CB would be huge and the gain miniscule.


Comment on Re^3: AJAX-based Perlmonks.com?
Re^4: AJAX-based Perlmonks.com?
by gregor42 (Parson) on Dec 12, 2005 at 14:20 UTC

    The chatterbox will never be Ajax-based for two reasons. First, Pair.com does not allow "chat servers" in its terms of use. The CB already is on the very border of that in my opionion

    This is especially true of the Java based CB client.

    Second, the server load would multiply if every page that a browser has open on Perlmonks would reload all the time.

    Since JavaScript can span a user session & not only a window - there's no reason to open more than one connection per user session. However it would still be the rough equivalent of everyone running the Java client. And that certainly would increase the load. It could be throttled however to a slow refresh rate. I suppose it's all a matter of a breakeven point of performance vs. load. Clearly this isn't a big win scenario either way.

    Voting however, could certainly be implemented using AJAX. That could significantly reduce load especially on long threads, since the only data you'd be requesting back would be related to voting, rather than resending all of the content.



    Wait! This isn't a Parachute, this is a Backpack!
Re^4: AJAX-based Perlmonks.com?
by thor (Priest) on Dec 12, 2005 at 20:10 UTC
    Second, the server load would multiply if every page that a browser has open on Perlmonks would reload all the time.
    You're assuming that a refresh-every-n-seconds is the only way. What I was suggesting was more along the lines of only the chatterbox nodelet updating when the talk button was pressed. The chatterbox is used for more than just chat. Private messages and "you have a reply to ..." style messages are displayed here as well. It would be nice to be able to check the check boxes, hit the talk button, and not have the whole page refresh. In this style, I would venture to guess that the server load would be reduced, both from a CPU standpoint and a bandwidth standpoint. I could be wrong, though.

    thor

    The only easy day was yesterday

Reaped: Re^4: AJAX-based Perlmonks.com?
by NodeReaper (Curate) on Nov 30, 2009 at 10:03 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://515997]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-07-26 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls