Page 1 of 1

Connecting to a server in CRON...

Posted: Mon Oct 01, 2007 1:14 am
by mertero
Hello guys.

I question... I'm using a cron job to update some caches in our database. To update the cache I use curl to connect to some APIs from 3rd party servers and get data.

We have several such cron job running at the same time (each at its own interval, anyway...).

Is it problematic if those cron connect to the same server in the same time? I mean, can I use HTTP (with the curl library) to connect with the same machine to another same server in the same time? Or will I have a problem?

Thanks!

Ron

Posted: Mon Oct 01, 2007 1:17 am
by jeffery
As far as the HTTP server is concerned, it is just another HTTP request. I don't see a problem there.

Posted: Mon Oct 01, 2007 1:22 am
by mertero
Jeffery,

Thanks. That was quick ;-)

I was just wondering because I find that in my own personal computer when I try to connect to the same machine and it seems like it is stuck till the first machine has finished with my http request.

THanks!

Ron.