Re: Re: Persistent PHP web application?

From: Date: Tue, 04 Jan 2005 17:01:25 +0000
Subject: Re: Re: Persistent PHP web application?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-205600@lists.php.net to get a copy of this message
> Why don't you just create a daemon started from the command line > (shell/DOS) and have it accept socket connections from your Web server > PHP scripts and provide a SOA (Services Oriented API) to the code that > accesses your data structures pre-loaded in memory? Setting up a separate persistent daemon PHP script is appealing to me because It implements exactly what I want, which is a persistent PHP application server, and also would allow me to abstract the implementation behind an API, move it to other servers when load increases, etc. However, would a single process PHP server daemon be able to appropriately handle the incoming load from Apache, which will be running multiple processes handling concurrent incoming requests? Implementing a multi-process forking SOAP server in pure PHP seems inefficient, but maybe I'm not understanding the basic premise/implementation of the suggestion? Any good links/tutorials/examples/books for this? Thanks! /josh w.

« previous php.general (#205600) next »