Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: AJAX-based Perlmonks.com?

by gregor42 (Parson)
on Dec 15, 2005 at 16:35 UTC ( [id://517022]=note: print w/replies, xml ) Need Help??


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

10 votes will be handled at once, thus less bandwidth than 10 asynchronous request on the server.

Just to pick nits - you'd be reducing the number of transactions, but not necessarily the bandwidth requirements. You still are reloading all of the content for those 10 nodes every time you submit votes. Asynchronous requests would only send the vote information & (user id, node id, vote type) and receive confirmation information (current reputation tally for node).

Adding up all that data you still have less bandwith required in total.

AJAX excels in reducing bandwidth when you do things like this - decoupling functionality from content and only sending page updates rather than the entire page. Yes, you might increase the number of transactions, but you are making their function more granular and thus simpler to process with less overall generated network traffic.



Wait! This isn't a Parachute, this is a Backpack!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found