Re: threads extension
| From: | Rasmus Lerdorf | Date: | Tue, 14 Aug 2007 16:32:13 +0000 |
| Subject: | Re: threads extension | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4841@lists.php.net to get a copy of this message | ||
Alexey Zakhlestin wrote:
> why not? :)
> does it bring some unexpected problem?
One of the main design principles behind PHP is the shared-nothing
perfect sandbox. It ensures that each request is discrete and
completely independent of any other request. This core principle allows
it to scale horizontally to handle massive loads.
Obviously complex applications need a persistent datastore of some sort,
and sometimes that needs to be faster than a database, but in order to
keep the architecture manageable we need very clean and concise
interfaces between the core of PHP and these add-on mechanisms.
Threading is pretty much the opposite of a clean and concise interface
to our perfect sandbox.
-Rasmus