dongpu3347
2012-10-20 04:42
浏览 23
已采纳

Zend Server会在这里有用吗? [关闭]

I am in the process of putting the finishing touches to a very complex webapp which will go into beta shortly. My PHP coding style involves writing scores of small scritps that get reused in different "container" scripts via require statements. In the past I have used eAccelerator to speed up my scripts and the results have been pretty impressive (I have commonly got improvements of x 4). However, the current app is in a different league and is liable to attract a far greater number of users than anything I have previously done. I am in the process of establishing just what I can do on the server to offer a fluid and fast user experience. I have never used Zend Server before (and it does have a steep asking price) so I thought it best to get some feedback on whether it might be able to help with any of the following

  • Continue to live with my "scores of used & reused PHP scripts" coding style and my mySQL database.
  • Offer better bug tracking/error reporting/monitoring
  • Accelerated performance
  • Profiling to identify the bits of my code that are taking the longest to execute/could do with tweaking etc.

I have just downloaded the trial Windows version of Zend Server to try out on my local WAMP installation. However, there are still only 24h in a day so before I embark on that it would be useful to know if I am barking up the wrong tree here. Any tips would be much appreciated.

图片转代码服务由CSDN问答提供 功能建议

我正在对一个非常复杂的webapp进行最后修改,很快就会进入测试阶段。 我的PHP编码风格涉及编写大量小scritps,通过require语句在不同的“容器”脚本中重用。 在过去,我使用eAccelerator加速我的脚本,结果非常令人印象深刻(我通常得到x 4的改进)。 然而,目前的应用程序处于一个不同的联盟,并且可能吸引的用户数量远远超过我之前所做的任何用户。 我正在建立我在服务器上可以做的事情,以提供流畅和快速的用户体验。 我之前从未使用过Zend Server(而且它的确要价格很高)所以我认为最好能得到一些关于它是否能够帮助解决以下任何问题的反馈

  • 继续使用我的“大量已使用和重复使用的PHP脚本”编码风格和我的mySQL数据库。
  • 提供更好的错误跟踪/错误报告/监控 \ n
  • 加速性能
  • 分析以识别我的代码中执行时间最长/可以进行调整等的位。 \ n

    我刚刚下载了试用版的Zend Server,试用我当地的WAMP安装。 然而,在我开始之前,仍然只有24小时,所以知道我是否在这里咆哮错误的树是有用的。 任何提示将不胜感激。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dscjp19831212 2012-10-20 08:11
    已采纳

    In my opinion its definitely worth a try for you. It has some unique features you won't easily get with other configurations/products that could be beneficial in the future.

    To address your points:

    • Continue to live with my "scores of used & reused PHP scripts" coding style and my mySQL database.

      It certainly won't have a problem with your reused include files. More details when I get to performance.

    • Offer better bug tracking/error reporting/monitoring

      Yes. The code tracing feature is great for tracking down bugs. Through the management interface you can clearly see PHP error messages from all of your servers in one place without digging through log files.

    • Accelerated performance

      If you enable the bytecode cache you will see improved performance like you see with eAccelerator. The bytecode cache will make loading your frequently required scripts much faster than having PHP parse them on each request. In addition you can leverage the caching API to cache results of database queries (natively without having to set up something like Memcached or a file cache).

    • Profiling to identify the bits of my code that are taking the longest to execute/could do with tweaking etc.

      Code tracing gives you some of this which is especially helpful in a production environment. But you can always use something like XDebug or Zend Debugger for more advanced code profiling.

    Another nice feature is the session clustering. It sounds like it wont be long before you need to be running multiple web servers. When you do get to that point, making sure your PHP sessions are available to all servers wont be an issue and you won't have to set up a database or memcached session handler, you can use the Zend Server session manager which ensures if a server goes down, any session data created on that server will be available to the others.

    It's not like you can't get all of this stuff using other free products but depending on your budget and schedule it can streamline a lot of technical considerations and be managed by one product instead of having to support several products to ensure the operation of your site. If that has value for you then it may be worth considering.

    In addition, you can pay extra for support. I have no experience with Zend telephone support so I can't really comment on that but you have the option to have someone available to help.

    点赞 打赏 评论
  • doulubashang6936 2012-10-20 07:44

    It may help, but it's not necessarily the best option.

    About better bug tracking and error reporting, it depends a lot what you have already. If you have been using a mechanic for long time and you are used to it, usually changing it causes some problems or delay, plus your mechanic could be very good one.

    About the scores, there should be no problem since you will still have a record of usage of files.

    About profiling, again it depends in what you have already in place.

    About performance, personally I don't think it will be much better that using what you already mention plus good programming practices, and I'm not talking about microbenchmarking of your scripts, but proper use of loops, unseting things that you don't need, avoiding cycles, avoiding double checks of files or external resources, etc.

    If in your local tests you find a big improvement, then you may decide to use it or take the time to analyse the reports and decide if the improvements can be achieved with better code, use of cache, better .htaccess or use of headers or use Zend.

    点赞 打赏 评论

相关推荐