←back to thread

133 points avan1 | 1 comments | | HN request time: 0.203s | source
Show context
dakiol ◴[] No.45077990[source]
The one thing I don't like about PHP is that the whole application is bootstraped (and autoloading and the configuration is re-evaluated) in every single http request. Sure thing there's cache and all, but it just doesn't feel right (compared, to, for instance, an http server written in golang)
replies(5): >>45078039 #>>45078202 #>>45078278 #>>45079157 #>>45079955 #
1. klaussilveira ◴[] No.45078039[source]
There are well documented and production-ready libraries that you can use to run your own servers with PHP alone, no need for fpm or mod_php. PHP's JIT is pretty impressive and you would be blown away by the results.

https://reactphp.org/

https://www.php.net/manual/en/book.ev.php

https://bitbucket.org/osmanov/pecl-event

https://www.workerman.net/