News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Dave Marshall' Blog:
Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo
April 04, 2011 @ 10:18:20

Dave Marshall has written up a new post showing how he's used memcache, Gearman and Dojo to create an asynchronous progress bar he uses when generating large reports.

I have a (highly optimised) report that takes way too long to generate, up to around 30 seconds. [There's] too many variables to prime caches for every possible combination [and] personally, I don't think the browsers inbuilt progress bar is enough feedback for todays web users.

He generates the data into memcache when the user requests it and uses the Gearman worker processes to handle requests for data that doesn't yet exist. The progress bar is a part of Dojo and uses the dijit.ProgressBar widget to keep checking the progress of the build. This way the user can even leave the page and come back if the process takes too long with no threat to the generating report. You can find all of his code he's used to make it happen on his github account.

0 comments voice your opinion now!
gearman tutorial memcache dojo progressbar generate report


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Getting Started With CakePHP

DevShed: Fetching Search Results as Serialized Arrays with Yahoo Web Services and PHP 5

Oracle Technology Network: Installing PHP 5.2 for Oracle on Mac OS X 10.5 (Leopard)

HotToForge.com: Installing Cherokee With PHP5 And MySQL Support On Ubuntu 9.10

PHPBuilder.com: Getting started with Flex and Zend_Amf


Community Events





Don't see your event here?
Let us know!


community list composer library conference interview introduction opinion version release framework language artisanfiles series voicesoftheelephpant symfony tool security laravel podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework