你能否告诉他们是否值得使用Zend Framework进行高负载工程,例如,电子邮件营销服务可能包含大约十个或十几万个用户?
使用Zend Framework可以实现可接受的性能吗?
有人有这样的到期吗?
非常感谢你.
PHP Framework Benchmarks: Entertaining But Ultimately Useless
特别要注意他的四个性能优化建议:
Don’t use Zend_Application. While Zend_App is great for creating consistent complex bootstraps within a standardised structure,it doesn’t come without a significant performance hit to baseline performance. A more direct bootstrap (typical of ZF until Zend_App arrived) is far faster and can also be done without configuration files.
Skip using the ViewRenderer plugin. Without the ViewRenderer,you need to manually configure Zend_View and add render() calls to Controllers. This is actually very simple to do and is fairly fast – fast was never really part of the ViewRenderer’s genetics.
Use autoloading. Strip require_once calls from the framework library so unneeded files are ignored. Replace uses of Zend_Loader_Autoloader with a not-so-crazy autoloader function. In fact,pray Zend_Loader is never used – it does a lot of file ops that,to date,have never been explained to me as having any value.
Preload everything (Symfony 2 Preview does!). It buys you some performance cookies and equalises the speed baseline. Using a simple preload script is not that hard.