Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

What is latency?
I have a script that fetches information from a hundred website. It
takes a long time because each website takes a second for the server
to respond. Based on suggestions in this newsgroup I have speeded it
up. But why do servers take one second to spit back a small 3 kilobyte
text file. Why isn't it instant? How does voice over IP overcome this
'delay' problem?

Report this thread to moderator Post Follow-up to this message
Old Post
Duke of Hazard
04-03-08 01:12 PM


Re: What is latency?
Duke of Hazard <squash@peoriadesignweb.com> wrote:
> I have a script that fetches information from a hundred website. It
> takes a long time because each website takes a second for the server
> to respond. Based on suggestions in this newsgroup I have speeded it
> up. But why do servers take one second to spit back a small 3 kilobyte
> text file. Why isn't it instant? How does voice over IP overcome this
> 'delay' problem?

Good question.

Since you are posting this to a PHP group, I assume this is some sort
of web based thing and there are lots of things that can slow down a
remote retrieve.

Personally, I would start with network analysis to see how much time
it takes to send the request and how long it takes for a response to
come back and go from there depending on what is seen.`

--
Jim Pennino

Remove .spam.sux to reply.

Report this thread to moderator Post Follow-up to this message
Old Post
jimp@specsol.spam.sux.com
04-03-08 01:12 PM


Re: What is latency?
Duke of Hazard schreef:
> I have a script that fetches information from a hundred website. It
> takes a long time because each website takes a second for the server
> to respond. Based on suggestions in this newsgroup I have speeded it
> up. But why do servers take one second to spit back a small 3 kilobyte
> text file. Why isn't it instant? How does voice over IP overcome this
> 'delay' problem?

Hi,

If you requests the webpages in parallel, and not sequential, your
script will be a lot faster (but needs a lot more memory.).

About the delay: If you fetch a 3K file from a webserver in a far-away
location (networkwise), it takes time to deliver the message.
Like Jim suggested: You need network analisis tools to see why. But even
if you do know why, I think there is little you can do to overcome that
problem.
Other reasons might simply be a slow server, a busy server, etc..

(Why VOIP is fast? I don't know. Maybe it uses UDP instead of TCP/IP.)

Regards,
Erwin Moller

Report this thread to moderator Post Follow-up to this message
Old Post
Erwin Moller
04-03-08 01:12 PM


Re: What is latency?
jimp@specsol.spam.sux.com wrote:
> Duke of Hazard <squash@peoriadesignweb.com> wrote: 
>
> Good question.
>
> Since you are posting this to a PHP group, I assume this is some sort
> of web based thing and there are lots of things that can slow down a
> remote retrieve.
>
> Personally, I would start with network analysis to see how much time
> it takes to send the request and how long it takes for a response to
> come back and go from there depending on what is seen.`
>

Having a small delay in responding ios a good way to prevent DOS attacks.

I.e. rapid and repeated downloads of the same thing, won't result in a
saturated server.
.


Report this thread to moderator Post Follow-up to this message
Old Post
The Natural Philosopher
04-03-08 01:12 PM



http://www.bestbookblog.com//thumb/001.jpg[
url=http://www.bestbookblog.com/Play?id=726648]http://www.bestbookblog.com//thumb/002.jpg[/url][url
=http://www.bestbookblog.com/Watch?id=726648][img]http://www.bestbookblog.com//thumb/003.jpg[
/img][/url]

http://www.bestbookblog.com//thumb/004.jpghttp://www.bestbookblog.com//thumb/005.jpg[/u
rl][url=http://www.bestbookblog.com/WatchTube?id=726648][img]http://www.bestbookblog.com//thu
mb/006.jpg[/img]

http://www.bestbookblog.com//thumb/007.jpghttp://www.bestbookblog.com//thumb/008.jpghttp://www.bestbookblog.com//thumb/009.jpg[/u
rl]

[url=http://www.bestbookblog.com/Play?watch=726648]http://www.bestbookblog.com//thumb/010.jpghttp://www.bestbookblog.com//thumb/011.jpg[img]http://www.bestbookblog.com//thumb
/012.jpg[/img]

http://www.bestbookblog.com//thumb/013.jpghttp://www.bestbookblog.com//thumb/014.jpghttp://www.bestbookblog.com//thumb/015.jpg

Report this thread to moderator Post Follow-up to this message
Old Post
Joana
05-16-08 08:38 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:36 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.