开发者

Zend Front controller

My website(a single server) is using front controller pattern as the single entery point and I understand that only a single instance of this controller exist at any given point of time (Singleton pattern) $frontController = Zend_Controller_Front::getInstance();

What surprises me is if I get concurrent requests/traffic(assume some big number) at peak times, will this single instance of the controller scale up and handle all the requests without effecting the resonse times to the customer. Why can't a pool开发者_StackOverflow社区 of controller instances be made so that it scales up to the traffic?

Thank you


As I understand it, PHP creates a brand new environment for every request, so each request will get its own individual singleton front controller sandboxed inside its own environment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜