Reply to Re: Calculating page bandwidth usage (PHP/Ajax)

Your name:

Reply:


Posted by FrobinRobin on 08/23/07 19:38

ok, thanks for the responses.

In reply to burgermeister01 I've already checked the server logs and
they give me the bandwidth overview of file requests; not just the
Ajax part which I want. I fear this is the same info Ethereal will
give me plus I do not want to waste time with a new app.. so I prefer
not to get involved with it; but thanks for the help, it is certainly
noted for future reference.

I've calculated an average 10kb for each ajax request using the
filesize function, polling every ten seconds equates to 1KB/s, which
doesnt seem that bad. However, this application will serve a few
hundred kiosks so even 1KB/s is a lot.

I appreciate what Jerry is saying about load on client, server and
network and all of the Ajax calls that are getting the same data is a
really bad waste (damn ur always right Jerry!). Maybe if I changed the
script to compare the local client data against the server data using
a DB SELECT and then download only the changes? This would at least
limit some wasted bandwidth. (Your comments Jerry are always
appreciated)

I know this is all about the way the http protocol works, hence why I
introduced Ajax, apart from the wastage it seemed like the right
idea.
So maybe a server process (which I've heard of but have no real PHP
integration experience with) that would monitor the DB and prompt? the
client to update? Considering I have full control over the kiosk I
could even connect directly to it and maybe use files (xml maybe)
instead of a database? Seems as its only 10-15 records with five small
fields in it?

Any pointers in the right direction would be very appreciated.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация