Abhinav Singh's Blog: How to use locks in PHP cron jobs to avoid...

Courtesy PHPDeveloper.org  Tue, 12/29/2009 - 12:45

In this new post from Abhinav Singh on how to use file locking to keep your cron jobs from trying to use the same resources.

Cron jobs are hidden building blocks for most of the websites. They are generally used to process/aggregate data in the background.

However as a website starts to grow and there is gigabytes of data to be processed by every cron job, chances are that our cron jobs might overlap and possibly corrupt...


 

More related items

Create your own framework... on top of the Symfony2...
If you were to use our framework right now, you would probably have to add support for custom error messages. Right now, we have 404 and 500 error support but the responses are hardcoded in...

Mind the encodings! - Johannes Schlüter
Dealing with character sets and encodings is tough. As long as you're dealing only with English texts you in a luxury situation and can mix utf-8 and iso-8859-1 encoded texts and most (all?)...

uTorrent Accused of Unfairness, Banned by Trackers
One of the most significant changes in the new uTorrent is uTP, the ‘micro transfer protocol’. UTP is a new and improved implementation of the BitTorrent protocol which is...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com