r/nginx • u/EGreg • Sep 22 '26
GitHub - Qbix/webserver: Pure-PHP Web Server. No NGinX or PHP-FPM needed. Handle over 100x more traffic instead!
https://github.com/Qbix/webserver
7
Upvotes
r/nginx • u/EGreg • Sep 22 '26
View all comments
Show parent comment
0
u/EGreg Sep 22 '26
Right, its default mode is like Octane but without having to rewrite your code to use async I/O, and also with automatic reset (thanks to PHP reflection) between requests.
If that doesn't work (e.g. your functions have local static variables) you can enable the "forkPerRequest" mode in config, which can still handle 100x the amount of workers NGINX + PHP-FPM does. It actually spawns a new forked process per request (~7ms) but it saves 50ms or so on the framework bootstrap + config.