Zend Platform JobQueue

Being a pretty open source-minded person, I tend to stay away from commercial solutions for stuff that can be done differently. But every once in a while you come by a possibility or need to use the commercial variant. Interesting, as you see another solution. For me, this recently happened with Zend Platform's JobQueue feature.

I guess I don't really have to explain what JobQueue does, as the name basically says it all: Using this, you can queue jobs that need to be performed. I usually use cronjobs for this, but that is especially useful for jobs that you know will need to be done. If you want to dynamically queue jobs, it's getting more complicated: You'll then have to have a cronjob that looks into a custom built queue (probably a database) to run certain tasks. Nice, but can be annoying, mostly because the whole queue and execution logic needs to be developed by you yourself.

In the case of Zend Platform's JobQueue, all this is taken care of by Zend Platform. It even provides some nice classes to connect to the queue and add jobs to it, or even manage jobs. For a project I'm currently working on at work, we use this technology, and even though I've just been working with this for a very short while, I'm very impressed at the ease of use of this.

So why is it useful? Well, as I already mentioned, aside from simply planning recurring jobs at specific times, you can aso dynamically add jobs to the queue. This is especially useful if you need to do resource-intensive or time-consuming processing that you don't want the user to wait for. You simply add the job of processing to the queue, and the user page can load with an acceptable speed. The job will do the processing (you define the script which does the processing). You need of course to take into account that depending on the length of the queue or the load on the server, processing can take a while, and not depend on the result of the processing in any scripts without ensuring that things can also work without the result.

The JobQueue is not a key selling point for the platform, but if you have Zend Platform available, then it's well worth your time looking at using it if you need something like this. 


Add comment

Comments

gravatar compare motor trade insurance: This is really good to see this article. I like the concept of the blog. Looking for more stuff in future from u guys. :)
February 3, 2012
gravatar link building service: Good to know about the zend jobqueue. Thanks for sharing it.
February 4, 2012
gravatar Diamond Sofa: I love this post a lot. I'll definitely be back again. Hope that I will be able to study far more informative posts then. Is going to be sharing your wisdom with all of my associates!
February 7, 2012
gravatar ashley furniture: I wanted to thank you for this great read!! I undoubtedly having fun with each little bit of it I've you bookmarked to check out new stuff you post
February 7, 2012
gravatar air jordan shoes: Really what I was looking for today. I think this is a topic one can see controversial. Nevertheless thank you a lot for this! Will vistit you soon again :D :) 8-O
February 9, 2012

Php5_zce_logo

Upcoming events

I will be speaking 17-02-2012: Techademy Trainingday February
I will be speaking 23-02-2012: Zend Webinar: Git for Subversion Users

Tags

1337 2008 2010 2011 4developers access modifiers accessibility AdaLovelaceDay09 advent agavi agile alfred amsterdam apache api apple article articles atk atkMetaNode audioscrobbler automation azure backwards compatibility barcelona barcodes bash bbc bbq beatstad belgium best practices bittorrent blogging blogs boards of canada book books bughuntday bundle caching cake cal evans calendar career cat cerf certificate cfp clear cms cologne common sense communities community components conference conferences contest continuous integration contribute contribution crisis css custom d-day datetime DbFinderPlugin decorator decorators deployment devdays development directoryindex docblox doctrine documentation download dpc dpc09 dpc10 dpc11 DPC2008 dreamhost drupal dv7 eclipse ed editors efficiency enterprise errors event events expertise ezcomponents facebook finland flickr fork framework frameworks freelance freeze frontend fun game games geoip germany getting real git github gnome-do google google calendar googletalk graceful degradation hack hackers hidden gem hiphop howto hp HR html http i386 ibuildings icann ide ideasofmarch idm imovie indy ingewikkeld integration international php conference internet interview ipad IPC ipc ipc08 ipc10 ipc11se iterm2 javascript jenkins jenkins-php job job openings jobeet john peel joomla joomladays kiva kubuntu launcher launchy left on the web libraries library lighttpd lime linktuesday linux live london loudblog m2ts mac magazines malware mambo marjolein mediterra meeting meme meta methodology micro-financing microframework microsoft migration movie music mysql namespace namespaces netbeans netherlands newsfire nllgg nos odmarco open source opinion ORM osx paradiso paris partnership pavilion pear pecl performance personal pfc10 pfc11 pfcongres pfcongrez pfz photo php php5.3 phpabstract phpazure phpBB phpbb phpbelgium phpbenelux phpbnl10 phpday phpdoc phpdocumentor phpgg phpitalia phpnw phpnw08 phpnw11 phpstorm phptek phptek09 phpuk2009 phpUnderControl phpunit php|architect php|tek podcast politics portability postcrossing presentation presentations private projects protected prototype PSR-0 public python qa qr codes re2c recruiting refactoring review rewrite ruby on rails san francisco schedule scifi script security sensio seven things sfdaycgn sflive2011 shell scripting silex simplexml slides smfony software sogeti solar sound speakers spl ssh standard standards star trek static steer strings stylesheets subversion symfony symfony live Symfony2 symfonycamp symfonyday symfonylive symfonyUnderControlPlugin talk talks techademy technology techportal tek09 telecommuting terratec terrorism testfest testing textmate textpattern the right tool timeout tips tld todo tomas tools training twig uncon unet usability usergroup validation vhost video vim vinyl virus warp webinar weblogging webservices wiki windows winphp women wordpress work workshop world world of warcraft wpi writing wunderlist xml xpath xsd yara year youtube zc11 ZCE zemanta zend zend framework zend server zend studio zendcon Zend_Form zite
© 2004 - 2012 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Delicious, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.4.0.1