What do I use when a cron job isn't enough? (php)

Posted by mike on Stack Overflow See other posts from Stack Overflow or by mike
Published on 2010-04-21T06:10:33Z Indexed on 2010/04/21 6:13 UTC
Read the original article Hit count: 358

Filed under:
|
|

I'm trying to figure out the most efficient way to running a pretty hefty PHP task thousands of times a day. It needs to make an IMAP connection to Gmail, loop over the emails, save this info to the database and save images locally.

Running this task every so often using a cron isn't that big of a deal, but I need to run it every minute and I know eventually the crons will start running on top of each other and cause memory issues.

What is the next step up when you need to efficiently run a task multiple times a minute? I've been reading about beanstalk & pheanstalk and I'm not entirely sure if that will do what I need. Thoughts???

© Stack Overflow or respective owner

Related posts about php

Related posts about cronjob