I have platform written in PHP that is synced with Google Adwords API. I need my server to repeatedly check values from the Adwords database then update my database. I think this could be done via cronjob but the problem is running a php cron every 5 minutes that sends request to google server might trash the CPU and consume a lot of memory. I came up with an idea of making it with C language which is very light and won't consume much memory.
The syncing process should run regardless users visiting the PHP script, for that reason I came up with cronjob at the first place.
My question is how should I approach this issue? is cronjob the right solution? If is, should it be done with C? I'd probably need a Soap Client library, can you please recommend of one?
Thanks a lot, Oron