On Mon, Feb 28, 2011 at 1:42 PM, Tan Cheng <[email protected]> wrote: > Thanks for all the input!!! So much good information to learn. Due to > the tight budget and maybe the site traffic will not be so high, I am > still looking at a shard hosting which supports cron, and maybe let it > run a cake shell every 5 hours to encode and update the database. I > think I am going to do some testing on my ubuntu localhost first. My > goal here may to get my feet wet before thinking about vps with a > queue system.
I'm just catching up with this thread now. Just wanted to point out that you may have difficulties doing something like this on shared hosting. For starters, ffmpeg may not be available. Or you may find it impossible to run other processes. Then there's the issue of RAM (and, perhaps, disk space). As for the suggestion, Ryan's ideas seem sound but I agree with Mark that it may be worth your while to look at existing solutions. I haven't tried Rabbit; am looking at it now. There was this CakePHP Queue plugin that I looked at some time ago: http://bakery.cakephp.org/articles/mseven_myopenid_com/2009/09/04/cakephp-simple-queue-plugin Although I found it to be problematic. It was designed for making additions to the queue through a shell, not web requests. I got it to work, but it was buggy as heck. Like, things never being removed from the queue and thus repeating, processes never dying, etc. Perhaps those bugs have been ironed out now. I should take another look at it as it's a worthwhile tool. And handy to have something like it right inside Cake. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
