4 ms·
> I am honestly asking, is there a simple reason why, lets say python, can't be easily deployed on shared hosting. The standard execution model for PHP apps is
by rsynnott 14y ago
> I am honestly asking, is there a simple reason why, lets say python, can't be easily deployed on shared hosting.
The standard execution model for PHP apps is, request comes in, code is executed, code goes away, resources returned. PHP is optimised to suit this model. For nearly anything else, you have one or more long-running processes which take requests, thus skipping the code loading/interpreting/compiling stage, which tends to be expensive.
It's quite easy to do python CGI on shared hosting without concerns, but it's not going to be fast. Once you start looking at things like FastCGI or WSGI, you have a process which, at least some of the time, is persistent.