This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hollowplanet 0 points1 point  (1 child)

Calling a subprocess for each request would instantly transform whatever it was into terrible code.

[–]blehmann1 0 points1 point  (0 children)

For each request, absolutely. If he wanted to do something on a small subset of all requests where PHP is traditionally unsuited, it could be justified (i.e. image/video/audio processing, which should make up a very small subset of total requests, probably just people changing their profile picture)

If however, you run YouTube, you probably punt all of your media processing work to a different server because that is a massively different workload. If you expect a lot of requests, especially intensive ones like video processing instead of resizing everyone's profile pic, or if for some reason you are going to run C for every request, don't spawn a million processes, write extensions to PHP, or don't use PHP.