Replies: 1 comment 1 reply
|
Sounds interesting, I imagine though that there are lots of subtleties that would need to consider when forking the process. The pros are obviously that you do not need to tear down the application as you can just the destroy the process at the end of the request. Haven't looked into it though, so maybe they do have solutions to these problems. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Today I read about Qbix, (yet another) "app server for php".
It is a pure-php application, which claims to be able to achieve both excellent speed, low memory usage and great stability by (afaict):
The stability part is guaranteed by having 1 worker process per request - no memory leaks out of the box.
The speedup and reduced memory consumption comes from having the worker processes being forked after having the php classes already in memory (and possibly the connections to external services such as DBs open).
While I have not even tried to run it even once, it seems that this might be a good execution model, if not in general, at least for a specific set of php applications, eg. those that take care of routing on their own and are distributed as containers, where there is no need to reload state in case of live changes to the php code.
Can anyone comment on the pros/cons of this vs. the FrankenPHP worker mode?
All reactions