News Feed
Sections




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

VG Tech Blog:
Lazy Loading Resources with Zend Framework Bootstrap
June 01, 2012 @ 14:48:23

On the VG Tech blog today André Roaldseth has a new post showing how to lazy load in the Zend Framework bootstrap using two handy methods you can drop into your applications initialization.

The Bootstrapping process in Zend Framework isn't perfect. You'll often end up bootstrapping a lot of resources that you don't need to complete the request. Depending on the resources this can be really expensive and hurt your overall performance. The worst kind are resources that open connections to external services [...], even worse, if the services are down they will end up blocking the execution.

Using his modified "getResource" and "lazyload" methods, he shows you how to modify your resource requests to put them in a temporary state that is only initialized when the resource is needed. You can find the code for this example in this gist.

0 comments voice your opinion now!
zendframework resource lazyload bootstrap


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: BostonPHP Framework Presentations

Padraic Brady's Blog: Contributing To Zend Framework 2.0 Is Free! Hurry Before This Offer Ends!

Zend Developer Zone: ACRONYM or MixedCasing in Zend Framework 2? You decide!

Andrew Johnstone's Blog: Soap, XmlRpc and Rest with the Zend Framework

Rob Allen's' Blog: A Zend Framwork compound form element for dates


Community Events





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


tips podcast introduction framework api developer community deployment bugfix threedevsandamaybe laravel interview development symfony list language release series code zendserver

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