main advantage of the app server approach is that you can do your
framework init stuff once at server startup instead of every single request,
which can be a pretty huge saving.
The main problem is that PHP isn't very good at long running processes.
Also worth checking out: http://mongrel2.org
- Dennis Hotson
I use pcntl_fork() for writing parallel multi-process applications and it
works pretty well.
Also, you can use shared memory queues to pass messages between processes
(ie msg_get_queue()).
I wrote a little proof of concept library a while ago to demonstrate:
http://github.com/dhotson/Phork
It's n
ther useful application of fdopen() is for hot
swapping a running program.
http://nathanwiegand.com/wp/2010/02/hot-swapping-binaries/
I realise this is probably not a priority for PHP, but I actually enjoy
writing network servers in PHP and this would be a pretty awesome feature.
Regards,
Dennis Hotson
(PS. Sorry for the dupe Pierre, I forgot to reply to the list.)
27;s the best way
to get a function like this into PHP?
Regards,
Dennis Hotson