Will PHP Die In Web Page Development World?
- by Morgan Cheng
I know that PHP is still the most popular web programming language in the world. This question just want to bring some of my concerns about PHP.
PHP is naturally bound to C10K problem. Since PHP (generally run in Apache) cannot be event-driven or asynchronous, each HTTP request will occupy at least one thread or process. This makes it resistant to be more scalable.
Currently, a lot of web sites (like Facebook) with high performance and scalability still depends on PHP in their front end servers. I suppose it is due to legacy reason. Is it possible that PHP will be replaced by language more suitable for C10K?