On Wed, 5 Dec 2001, Stig S. Bakken wrote:

> Importing objects into the current Zend/PHP instance and then updating
> them at request shutdown introduces a lot of tricky synchronization
> problems, I think it's very difficult to implement reliably with Zend as
> well.
> 
> IMHO a better solution would be using a remote object access mechanism. 
> There are several choices available today, such as Corba, SOAP or
> XML-RPC (check out php4/pear/PEAR/Remote.php for an example
> implementation using XML-RPC).  According to Derick, SRM can do this
> today, which would probably be a lot faster than both Corba and the
> XML-based protocols.

The trouble with remote object access mechanisms is that most of them are 
really slow. I had great success with serializing objects and arrays into 
shared memory. All of that was done in PHP using sysvshm extension. Maybe 
some system support for that could make it even easier and hopefully 
even faster.

The approach is not perfect. Your objects become readable to every 
user on the same webserver, so it would probably be impractical for ISPs 
to enable it.

Edin


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to